@@ -0,0 +1,1947 @@
+/*%0A * Copyright 2018, TeamDev Ltd. All rights reserved.%0A *%0A * Redistribution and use in source and/or binary forms, with or without%0A * modification, must retain the above copyright notice and the following%0A * disclaimer.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,%0A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT%0A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE%0A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0Apackage io.spine.server.delivery;%0A%0Aimport com.google.common.testing.EqualsTester;%0Aimport org.junit.Test;%0A%0Aimport static io.spine.server.delivery.UniformAcrossTargets.forNumber;%0Aimport static io.spine.server.delivery.UniformAcrossTargets.singleShard;%0A%0A/**%0A * @author Alex Tymchenko%0A */%0Apublic class UniformAcrossTargetsShould %7B%0A%0A    @Test%0A    public void support_equality() %7B%0A        new EqualsTester().addEqualityGroup(singleShard(), singleShard(), forNumber(1))%0A                          .addEqualityGroup(forNumber(3), forNumber(3))%0A                          .addEqualityGroup(forNumber(42), forNumber(42))%0A                          .testEquals();%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void not_allow_negative_number_of_shards() %7B%0A        forNumber(-1);%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void not_allow_zero_number_of_shards() %7B%0A        forNumber(0);%0A    %7D%0A%7D%0A

Add more tests for `UniformAcrossTargets`.