@Test(timeout = 8000)
public void sqrtException() throws Exception {

    try {
        Main.sqrt(-100);
    } catch (IllegalArgumentException e) {
        String message = "Main.sqrt(-100);\nIllegalArgumentException.getMessage()";
        assertEquals(message, "Expected non-negative number, got -100.0", e.getMessage());
        return;
    }
    fail("Main.sqrt(-100). Expected IllegalArgumentException");
}