### Question:
Assertions { public static void verifyPrecondition(boolean assertionResult, String errorMessage) { if (!assertionResult) { throw new RuntimeException(errorMessage); } }  static void verifyPrecondition(boolean assertionResult, String errorMessage);  }### Answer:
@Test(expected = RuntimeException.class) public void testVerifyPreconditionFailure() { verifyPrecondition(false, ""); }
@Test public void testVerifyPrecondition() { verifyPrecondition(true, ""); }
@Test public void testVerifyPreconditionFailure() { assertThrows(RuntimeException.class, () -> verifyPrecondition(false, "")); }