### Question:
DataTypeListShortcuts { DataType getTopLevelParent(final DataType dataType) { return dataTypeUtils.getTopLevelParent(dataType); } @Inject  DataTypeListShortcuts(final View view,
                                 final DataTypeUtils dataTypeUtils); @PostConstruct void init(); void init(final DataTypeList dataTypeList); void reset();  }### Answer:
@Test public void testGetTopLevelParent() { final DataType expectedDataType = mock(DataType.class); when(dataTypeUtils.getTopLevelParent(expectedDataType)).thenReturn(expectedDataType); final DataType actualDataType = shortcuts.getTopLevelParent(expectedDataType); assertEquals(expectedDataType, actualDataType); }