* @param sequenceValue - the expected sequence value in the first annex detail
*/
protected void testAnnexDetails(
final List<MatterTypeAnnexDetail> annexDetails, int listSize, String annexTypeName, Long sequenceValue) {
assertEquals("there should be an annex detail", listSize, annexDetails.size());
final MatterTypeAnnexDetail matterTypeAnnexDetail = annexDetails.get(0);
matterTypeAnnexDetail.refresh();
assertEquals("annex type name differs", annexTypeName, matterTypeAnnexDetail.getAnnexType().getName());
assertEquals("sequence value differs", sequenceValue, matterTypeAnnexDetail.getSequence());
}