### Question:
HecateException extends RuntimeException { public static <T> T verifyNotNull(T object, String message, Object... params) { if(object == null) { throw new HecateException(message, params); } return object; } HecateException(String message, Object... args);  HecateException(Exception cause, String message, Object... args); static T verifyNotNull(T object, String message, Object... params);  }### Answer:
@Test public void testVerifyNotNul() { assertEquals("foo", HecateException.verifyNotNull("foo", "This is my %s.", "message")); }
@Test public void testVerifyNotNullWithNull() { try { HecateException.verifyNotNull(null, "This is my %s.", "message"); fail(); } catch (HecateException e) { assertEquals("This is my message.", e.getMessage()); } }