### Question:
ReferencedDataTypeWarningMessage extends WarningMessage { @Override String getErrorElementSelector(final DataType dataType) { return "[" + UUID_ATTR + "=\"" + dataType.getUUID() + "\"] select"; } @Inject  ReferencedDataTypeWarningMessage(final TranslationService translationService);   }### Answer:
@Test public void testGetErrorElementSelector() { final DataType dataType = mock(DataType.class); when(dataType.getUUID()).thenReturn("1111-1111-1111-1111"); final String expectedSelector = "[data-row-uuid=\"1111-1111-1111-1111\"] select"; final String actualSelector = new ReferencedDataTypeWarningMessage(translationService).getErrorElementSelector(dataType); assertEquals(expectedSelector, actualSelector); }