@Test(expected = NullPointerException.class) public void testMissingSubject() { helper.getSubject(""); }
public Subject getSubject(final String subjectId) { checkNotNull(subjectId); return checkNotNull(subjects.get(subjectId), "No subject for ID %s", subjectId); }
SearchSubjectHelper extends ComponentSupport { public Subject getSubject(final String subjectId) { checkNotNull(subjectId); return checkNotNull(subjects.get(subjectId), "No subject for ID %s", subjectId); } }
SearchSubjectHelper extends ComponentSupport { public Subject getSubject(final String subjectId) { checkNotNull(subjectId); return checkNotNull(subjects.get(subjectId), "No subject for ID %s", subjectId); }  }
SearchSubjectHelper extends ComponentSupport { public Subject getSubject(final String subjectId) { checkNotNull(subjectId); return checkNotNull(subjects.get(subjectId), "No subject for ID %s", subjectId); }  SubjectRegistration register(final Subject subject); Subject getSubject(final String subjectId); }
SearchSubjectHelper extends ComponentSupport { public Subject getSubject(final String subjectId) { checkNotNull(subjectId); return checkNotNull(subjects.get(subjectId), "No subject for ID %s", subjectId); }  SubjectRegistration register(final Subject subject); Subject getSubject(final String subjectId);  }