### Question:
DataTypeNameIsNotUniqueErrorMessage extends ErrorMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeNameIsNotUniqueErrorMessage_StrongMessage, dataType.getName()); } @Inject  DataTypeNameIsNotUniqueErrorMessage(final TranslationService translationService);   }### Answer:
@Test public void testGetStrongMessage() { final DataType dataType = mock(DataType.class); final String dataTypeName = "name"; final String expectedErrorMessage = "*Expected strong message.*"; final DataTypeNameIsNotUniqueErrorMessage errorMessage = new DataTypeNameIsNotUniqueErrorMessage(translationService); when(dataType.getName()).thenReturn(dataTypeName); when(translationService.format(DataTypeNameIsNotUniqueErrorMessage_StrongMessage, dataTypeName)).thenReturn(expectedErrorMessage); final String actualErrorMessage = errorMessage.getStrongMessage(dataType); assertEquals(expectedErrorMessage, actualErrorMessage); }