### Question:
ActionError { public ActionError(String message, String details) { super(); _message = message; _details = details; _messageArguments = new Object[0]; _detailArguments = new Object[0]; _target = null; _detailsKey = null; _code = -1; } ActionError(String message, String details);  ActionError(int code, String target, String message, Object[] messageArguments, String details, String detailsKey,
            Object[] detailsArguments); int getCode(); String getDetails(); Object[] getDetailArguments(); String getMessage(); Object[] getMessageArguments(); String getTarget(); static String getStackTrace(Throwable th); String getFormattedMessage(Locale locale); String getFormattedDetail(Locale locale); String getFormattedMessage(); String getFormattedDetail();  }### Answer:
@Test public void testActionError() throws Exception { ActionError ae = new ActionError(-1, "target", "com_intalio_bpms_workflow_taskHolder_priority", new String[]{"message arg1"}, "detail", "com_intalio_bpms_workflow_taskHolder_taskState", new String[]{"detail keys1"}); assertEquals(ae.getCode(), -1); assertEquals(ae.getDetails(), "detail"); assertEquals(ae.getMessage(), "com_intalio_bpms_workflow_taskHolder_priority"); assertEquals(ae.getTarget(), "target"); assertTrue(ae.getFormattedDetail().contains("State")); assertTrue(ae.getFormattedDetail(Locale.FRANCE).contains("Statut")); assertTrue(ae.getFormattedMessage().contains("Priority")); assertTrue(ae.getFormattedMessage(Locale.FRANCE).contains("Urgence")); assertEquals(ae.getMessageArguments().length, 1); assertEquals(ae.getDetailArguments().length, 1); assertTrue(ActionError.getMessage("com_intalio_bpms_workflow_tab_processes", Locale.US).contains("Processes")); }