### Question:
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getRegularMessage() { return translationService.format(DataTypeNameIsBlankErrorMessage_RegularMessage); } @Inject  DataTypeNameIsBlankErrorMessage(final TranslationService translationService);   }### Answer:
@Test public void testGetRegularMessage() { final String expectedErrorMessage = "Expected regular message."; final DataTypeNameIsBlankErrorMessage errorMessage = new DataTypeNameIsBlankErrorMessage(translationService); when(translationService.format(DataTypeNameIsBlankErrorMessage_RegularMessage)).thenReturn(expectedErrorMessage); final String actualErrorMessage = errorMessage.getRegularMessage(); assertEquals(expectedErrorMessage, actualErrorMessage); }