### Question:
ValidateUtil { public static void isNotBlankOrThrowInvalidRequest(String theString, String theMessage) { if (isBlank(theString)) { throw new InvalidRequestException(theMessage); } }  static void isGreaterThan(long theValue, long theMinimum, String theMessage); static void isGreaterThanOrEqualTo(long theValue, long theMinimum, String theMessage); static void isNotBlankOrThrowIllegalArgument(String theString, String theMessage); static void isNotBlankOrThrowInvalidRequest(String theString, String theMessage); static void isNotBlankOrThrowUnprocessableEntity(String theString, String theMessage); static void isNotNullOrThrowUnprocessableEntity(Object theObject, String theMessage, Object... theValues); static void isNotTooLongOrThrowIllegalArgument(String theString, int theMaxLength, String theMessage); static void isTrueOrThrowInvalidRequest(boolean theSuccess, String theMessage, Object... theValues); static void exactlyOneNotNullOrThrowInvalidRequestException(Object[] theObjects, String theMessage);  }### Answer:
@Test public void testIsNotBlank() { ValidateUtil.isNotBlankOrThrowInvalidRequest("aa", ""); try { ValidateUtil.isNotBlankOrThrowInvalidRequest("", "The message"); fail(); } catch (InvalidRequestException e) { assertEquals("The message", e.getMessage()); } try { ValidateUtil.isNotBlankOrThrowInvalidRequest(null, "The message"); fail(); } catch (InvalidRequestException e) { assertEquals("The message", e.getMessage()); } try { ValidateUtil.isNotBlankOrThrowInvalidRequest(" ", "The message"); fail(); } catch (InvalidRequestException e) { assertEquals("The message", e.getMessage()); } }