### Question:
BaseBlockImporter implements Releasable, Importer<R> { @Override public List<SegmentKey> getImportSegments() { return importSegKeys; } 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 getImportSegments() { DataSource dataSource = mock(DataSource.class); BlockImporter blockImporter = new BlockImporter(dataSource, mock(SwiftSourceAlloter.class)); List segKeys = mock(List.class); Whitebox.setInternalState(blockImporter, "importSegKeys", segKeys); assertEquals(segKeys, blockImporter.getImportSegments()); }