@Test void testExpectedException() { Assertions.assertThrows(NumberFormatException.class, () -> { Integer.parseInt("One"); }); }
@Test(expected = SomeException.class) public void testName() { //some code }