### Question:
Utils { public static void setAllSubjectId(Subject subject) { String idString = "[0-9]+"; SubjectMatchType subjectMatchType = getSubjectMatchType(idString); subject.getSubjectMatch().add( subjectMatchType ); }  static void setSubjectGroupId(SubjectGroup sg, Long id); static void setExclusionSubjectGroupId(SubjectGroup sg, Long id); static SubjectMatchType getSubjectMatchType(Long id); static SubjectMatchType getSubjectMatchType(String idStr); static void setSubjectId(Subject subject, Long id); static void setExclusionSubjectId(Subject subject, Long id); static void setAllSubjectId(Subject subject); static Long getSubjectId(Subject subject); static Long getSubjectGroupId(SubjectGroup sg ); static Long getIdFromSubjectMatch(SubjectMatchType matchType); static boolean isExclusion(Subject subject); static boolean isSubjectType(Subject subject); static boolean isExclusion(SubjectGroup subjectGroup); static boolean isExclusion(List<SubjectMatchType> matchTypes); static boolean isSubjectType(List<SubjectMatchType> matchTypes);  }### Answer:
@Test public void testSetAllSubjectId(){ String id = "[0-9]+"; Subject subject = new Subject(); Utils.setAllSubjectId(subject); assertNotNull("Subject must not be null", subject); assertNotNull("SubjectMatch must contain at least 1 element", subject.getSubjectMatch()); assertEquals("SubjectMatch must contain at least 1 element", 1, subject.getSubjectMatch().size()); assertEquals("Attr value id must be this String chain: " + id, id, subject.getSubjectMatch().get(0).getAttributeValue().getContent().get(0)); }