ErrorThrowingTabixDataSource implements TabixDataSource { @Override public String getSource() { return "No source"; } ErrorThrowingTabixDataSource(String message); @Override TabixReader.Iterator query(String query); @Override TabixReader.Iterator query(String chromosome, int start, int end); @Override void close(); @Override String getSource();  }
@Test public void testGetSourceReturnsEmptyString() { TabixDataSource instance = new ErrorThrowingTabixDataSource("LOCAL"); assertThat(instance.getSource(), equalTo("No source")); }