package com.uwetrottmann.shopr.algorithm.test;

import static org.junit.Assert.*;

import org.junit.Test;

public class SimilarityTest {

    @Test
    public void testSimilarity() {
        fail("Not yet implemented");
    }

}

@@ -1,8 +1,9 @@
+%0A
 package 
@@ -64,161 +64,1278 @@
 org.
-junit.Assert.*;%0A%0Aimport org.junit.Test;%0A%0Apublic class SimilarityTest %7B%0A%0A    @Test%0A    public void testSimilarity() %7B%0A        fail(%22Not yet implemented%22);
+fest.assertions.api.Assertions.assertThat;%0Aimport static org.fest.assertions.api.Assertions.failBecauseExceptionWasNotThrown;%0A%0Aimport com.uwetrottmann.shopr.algorithm.Similarity;%0Aimport com.uwetrottmann.shopr.algorithm.model.Attributes;%0Aimport com.uwetrottmann.shopr.algorithm.model.ClothingType;%0Aimport com.uwetrottmann.shopr.algorithm.model.Color;%0A%0Aimport org.junit.Test;%0A%0Apublic class SimilarityTest %7B%0A%0A    @Test%0A    public void testSimilarity() %7B%0A        Attributes a1 = new Attributes();%0A        a1.color = new Color(Color.Value.RED);%0A        a1.type = new ClothingType(ClothingType.Value.DRESS);%0A%0A        Attributes a2 = new Attributes();%0A        a2.color = new Color(Color.Value.BLACK);%0A        a2.type = null;%0A%0A        // different color%0A        assertThat(Similarity.similarity(a1, a2)).isEqualTo(0.0);%0A%0A        // same color%0A        a1.color = new Color(Color.Value.BLACK);%0A        assertThat(Similarity.similarity(a1, a2)).isEqualTo(1.0);%0A%0A        // throw on no comparable attributes%0A        a1.color = null;%0A        try %7B%0A            Similarity.similarity(a1, a2);%0A%0A            failBecauseExceptionWasNotThrown(IllegalArgumentException.class);%0A        %7D catch (Exception e) %7B%0A            assertThat(e).isInstanceOf(IllegalArgumentException.class);%0A        %7D
 %0A   

Write test with expected values.