/* (non-Javadoc)
* @see org.martinlaw.test.courtcase.MatterBoTest#testRetrievedMatterFields(org.martinlaw.bo.Matter)
*/
@Override
public void testRetrievedMatterFields(Matter matter) {
CourtCase kase = (CourtCase)matter;
super.testRetrievedMatterFields(kase);
assertEquals("court ref differs", "c1", kase.getCourtReference());
// witness
List<CourtCaseWitness> witnesses = kase.getWitnesses();
assertEquals(1, witnesses.size());
CourtCaseWitness witness = witnesses.get(0);
assertEquals("witness principal name differs", "witness1", witness.getPrincipalName());
assertEquals("witness first name differs", "Witness",witness.getPerson().getFirstName());
// type
assertNotNull("case type should not be null", kase.getType());
assertEquals("case type id differs", new Long(10001), kase.getType().getId());
}