Util { static String toInt(final String string) { if (string == null) { return "-1"; } return String.valueOf(Integer.parseInt(string)); } private  Util(); static Properties configureEmailNotifications(final InstallData data);  }
@Test void toInt() { assertSoftly(softly -> { softly.assertThat(Util.toInt("-1")) .isEqualTo("-1"); softly.assertThat(Util.toInt(null)) .isEqualTo("-1"); }); }