### Question:
DialogUtils { public static Alert createAlert(AlertType type) { Alert dlg = new Alert(type); decorateDialogWithIcon(dlg); if (OsUtils.isLinux()) { dlg.setResizable(true); dlg.getDialogPane().setPrefSize(420, 280); } return dlg; } private  DialogUtils(); static Alert createAlert(AlertType type); static void decorateDialogWithIcon(Dialog<?> dlg);  }### Answer:
@Test public void testCreateAlert() { Alert dlg = DialogUtils.createAlert(AlertType.WARNING); assertNotNull(dlg); assertEquals(AlertType.WARNING, dlg.getAlertType()); assertTrue(alertHasIcons(dlg)); Alert dlg_info = DialogUtils.createAlert(AlertType.INFORMATION); assertNotNull(dlg_info); assertEquals(AlertType.INFORMATION, dlg_info.getAlertType()); assertTrue(alertHasIcons(dlg)); }