### Question:
CustomDialog extends JAccessibilityCustomDialog implements ActionListener { public static void showMessageDialog(final Component componentParent, final boolean modal, final String message, final String title, final int typeMessage){ final CustomDialog customDialog = CustomDialog.getInstanceCustomDialog(componentParent, modal, message, title, typeMessage, false); customDialog.infoLabel.setHorizontalAlignment(SwingConstants.CENTER); customDialog.setVisible(true); } private  CustomDialog(final JDialog componentParent, final boolean modal, final String message, final String title, final int typeMessage, final boolean isInputDialog); private  CustomDialog(final Component componentParent, final boolean modal, final String message, final String title, final int typeMessage, final boolean isInputDialog); private  CustomDialog(final JFrame componentParent, final boolean modal, final String message, final String title, final int typeMessage, final boolean isInputDialog); static void showMessageDialog(final Component componentParent, final boolean modal, final String message, final String title, final int typeMessage); static int showConfirmDialog(final Component componentParent, final boolean modal, final String message, final String title, final int typeOption, final int typeMessage); static String showInputDialog(final Component componentParent, final boolean modal, final String message, final int mnemonic, final String title, final int typeMessage); static Object showInputDialog(final Component componentParent, final boolean modal, final String message, final int mnemonic, final String title, final int typeMessage,
			final Object[] selectionValues, final Object initialSelectionValue); static String showInputDialog(final Component componentParent, final boolean modal, final String message, final int mnemonic, final List<String> list, final String nameListElements, final String title, final int typeMessage); static char[] showInputPasswordDialog(final Component componentParent, final boolean modal, final String charSet, final boolean beep, final String message, final int mnemonic, final String title, final int typeMessage); @Override int getMinimumRelation(); static CustomDialog getInstanceCustomDialog(final Component componentParent, final boolean modal, final String message, final String title, final int typeMessage, final boolean isInputDialog); @Override void actionPerformed(final ActionEvent e);  }### Answer:
@Ignore @Test public void testShowMessageDialog(){ LOGGER.info("testShowMessageDialog"); try{ final String message = new String("Test"); final String title = new String("Test"); CustomDialog.showMessageDialog(null, true, message, title, JOptionPane.INFORMATION_MESSAGE); final CustomDialog cD = CustomDialog.getInstanceCustomDialog(null, true, message, title, JOptionPane.INFORMATION_MESSAGE, false); assertTrue(checkComponentMessageDialog(cD)); } catch (final java.awt.HeadlessException e) { } }