### Question:
Annotations { static Annotations annotations(AnnotatedElement annotatedElement) { if (annotatedElement == null) { throw new IllegalArgumentException("Method argument annotatedElement must not be null."); } return new Annotations(annotatedElement); } private  Annotations(AnnotatedElement annotatedElement); @SuppressWarnings("unchecked") T get(Class<T> type);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testHandlingOfNullTypeArgumentForConstructor() { annotations(null); }