package uk.ac.ebi.atlas.model;

import org.junit.Test;

import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;

public class BiologicalReplicateTest {


    @Test
    public void toStringIsNice(){
        assertThat(
                new BiologicalReplicate("assay").toString(),
                is("BiologicalReplicate {id=assay}")
        );
    }

}
@@ -36,24 +36,147 @@
 ort 
-org.junit.Test;%0A
+com.google.common.collect.ImmutableSet;%0Aimport org.junit.Test;%0A%0Aimport java.util.Collections;%0A%0Aimport static org.hamcrest.Matchers.equalTo;
 %0Aimp
@@ -247,9 +247,18 @@
 ert.
-*
+assertThat
 ;%0A%0Ap
@@ -296,16 +296,857 @@
 Test %7B%0A%0A
+    @Test(expected=RuntimeException.class)%0A    public void replicateIdCantBeAnAssayId() throws Exception %7B%0A        new BiologicalReplicate(%22Foobar%22, ImmutableSet.of(%22Foo%22, %22Foobar%22, %22Bar%22));%0A    %7D%0A%0A    @Test(expected=RuntimeException.class)%0A    public void replicateNeedsAtLeastOneAssayId() throws Exception %7B%0A        new BiologicalReplicate(%22Foobar%22, Collections.emptySet());%0A    %7D%0A%0A    @Test%0A    public void retrievesAssayIdsAndItself() throws Exception %7B%0A        ImmutableSet%3CString%3E assayIds = ImmutableSet.of(%22assayId1%22, %22assayId2%22, %22assayId3%22);%0A        BiologicalReplicate subject = new BiologicalReplicate(%22replicateId%22, assayIds);%0A%0A        assertThat(subject.biologicalReplicatesForThisDataColumn().iterator().next(), is(equalTo(subject)));%0A        assertThat(subject.assaysAnalyzedForThisDataColumn(), is(equalTo(assayIds)));%0A    %7D%0A
 %0A    @Te
@@ -1333,10 +1333,9 @@
 ;%0A    %7D%0A
-%0A
 %7D

Add 100% coverage test