@@ -0,0 +1,932 @@
+package lan.dk.podcastserver.entity;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.NoSuchElementException;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A/**%0A * Created by kevin on 14/06/15 for HackerRank problem%0A */%0Apublic class StatusTest %7B%0A%0A    @Test%0A    public void should_check_value() %7B%0A        /* Given */ String nd = %22Not Downloaded%22, other = %22Other%22;%0A        /* When */  Boolean isSame = Status.NOT_DOWNLOADED.is(nd), isNotSame = Status.NOT_DOWNLOADED.is(other);%0A        /* Then */%0A            assertThat(isSame).isTrue();%0A            assertThat(isNotSame).isFalse();%0A    %7D%0A    %0A    @Test%0A    public void should_find_byValue() %7B%0A        assertThat(Status.byValue(%22Not Downloaded%22))%0A                .isNotNull()%0A                .isEqualTo(Status.NOT_DOWNLOADED);%0A    %7D%0A%0A    @Test(expected = NoSuchElementException.class)%0A    public void should_raised_exception_if_not_found() %7B%0A        Status.byValue(%22_%22);%0A    %7D%0A%0A%7D

test of the whole status entity