### Question:
BaseBlockImporter implements Releasable, Importer<R> { @Override public List<String> getFields() { return dataSource.getMetadata().getFieldNames(); } BaseBlockImporter(DataSource dataSource, A alloter); @Override void importResultSet(R swiftResultSet); @Override void release(); @Override List<String> getFields(); @Override List<SegmentKey> getImportSegments();  }### Answer:
@Test public void getFields() { DataSource dataSource = mock(DataSource.class, RETURNS_DEEP_STUBS); List fields = mock(List.class); when(dataSource.getMetadata().getFieldNames()).thenReturn(fields); assertEquals(fields, new BlockImporter(dataSource, mock(SwiftSourceAlloter.class)).getFields()); }