DDMFormInstanceRecordExporterImpl implements DDMFormInstanceRecordExporter { protected String getStatusMessage(int status, Locale locale) { return LanguageUtil.get( locale, WorkflowConstants.getStatusLabel(status)); }  @Override DDMFormInstanceRecordExporterResponse export(
			DDMFormInstanceRecordExporterRequest
				ddmFormInstanceRecordExporterRequest);  }
@Test public void testGetStatusMessage() { DDMFormInstanceRecordExporterImpl ddmFormInstanceRecordExporterImpl = new DDMFormInstanceRecordExporterImpl(); Locale locale = new Locale("pt", "BR"); when( _language.get(locale, "approved") ).thenReturn( "approvado" ); String statusMessage = ddmFormInstanceRecordExporterImpl.getStatusMessage( WorkflowConstants.STATUS_APPROVED, locale); Assert.assertEquals("approvado", statusMessage); Mockito.verify( _language, Mockito.times(1) ).get( locale, "approved" ); }