@@ -0,0 +1,2172 @@
+/*%0A * Copyright 2016, 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 */%0A%0Apackage org.spine3.type;%0A%0Aimport com.google.protobuf.Message;%0Aimport com.google.protobuf.StringValue;%0Aimport com.google.protobuf.UInt32Value;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class ClassTypeValueShould %7B%0A%0A    @Test%0A    public void return_enclosed_value() %7B%0A        final Class%3C? extends Message%3E expected = StringValue.class;%0A        assertEquals(expected, new  ClassTypeValue(expected) %7B%7D.value());%0A    %7D%0A%0A    @Test%0A    public void be_not_equal_to_null() %7B%0A        //noinspection ObjectEqualsNull%0A        assertFalse(new ClassTypeValue(UInt32Value.class)%7B%7D.equals(null));%0A    %7D%0A%0A    @Test%0A    public void be_not_equal_to_object_of_another_class() %7B%0A        // Notice that we're creating new inner classes here with the same value passed.%0A        //noinspection EqualsBetweenInconvertibleTypes%0A        assertFalse(new ClassTypeValue(StringValue.class)%7B%7D.equals(new ClassTypeValue(StringValue.class)%7B%7D));%0A    %7D%0A%0A    @Test%0A    public void be_equal_to_self() %7B%0A        final ClassTypeValue test = new ClassTypeValue(UInt32Value.class)%7B%7D;%0A        //noinspection EqualsWithItself%0A        assertTrue(test.equals(test));%0A    %7D%0A%7D%0A

Add coverage for `ClassTypeValue`.