void (String s, MockedStatic<Object> mockedStatic) { mockedStatic.when(X::name); org.junit.jupiter.api.Assertions.assertThrows(RuntimeException.class, ()->Short.parseShort(s)); org.junit.jupiter.api.Assertions.assertThrows(RuntimeException.class, ()->Short.parseShort(s), () -> { Short./*Result of 'Short.parseShort()' is ignored*/parseShort/**/(s); return "test"; }); org.junit.jupiter.api.Assertions.assertThrows(RuntimeException.class, ()-> { Short.parseShort("s"); }); org.junit.jupiter.api.Assertions.assertThrows(RuntimeException.class, ()-> { twice("abc"); }); org.junit.jupiter.api.Assertions.assertThrows(RuntimeException.class, (new Executable() { @Override public void execute() { twice("abc"); }})); org.assertj.core.api.Assertions.assertThatThrownBy((((()->Short.parseShort(s))))); }