### Question:
VcfManager { public Path createIndex() throws IOException { return createIndex(null); } VcfManager(Path input); Path createIndex(); Path createIndex(Path indexPath); List<VariantContext> query(Region region); List<VariantContext> query(Region region, VariantOptions options); List<VariantContext> query(Region region, VariantFilters<VariantContext> filters, VariantOptions options); List<VariantContext> query(VariantFilters<VariantContext> filters); List<VariantContext> query(VariantFilters<VariantContext> filters, VariantOptions options); List<T> query(VariantFilters<VariantContext> filters, VariantOptions options, Class<T> clazz); List<T> query(Region region, VariantFilters<VariantContext> filters, VariantOptions options, Class<T> clazz); VcfIterator<VariantContext> iterator(); VcfIterator<VariantContext> iterator(VariantFilters<VariantContext> filters); VcfIterator<T> iterator(VariantFilters<VariantContext> filters, Class<T> clazz); VcfIterator<VariantContext> iterator(Region region); VcfIterator<VariantContext> iterator(Region region, VariantFilters<VariantContext> filters); VcfIterator<T> iterator(Region region, VariantFilters<VariantContext> filters, Class<T> clazz); void close();  }### Answer:
@Test public void createIndex() throws Exception { Path path = Paths.get(getClass().getResource(filename).toURI()); VcfManager vcfManager = new VcfManager(path); Path indexPath = index(vcfManager); assert(indexPath.toFile().exists()); }