### Question:
ClasspathScanner { public Set<Class<?>> findClassesToParse() { Reflections reflections = new Reflections(new ConfigurationBuilder(). setUrls(buildClassLoaderUrls()).setScanners(new SubTypesScanner(false)).filterInputsBy(buildPackagePredicates())); return reflections.getSubTypesOf(Object.class); } ClasspathScanner(Options options); Set<Class<?>> findClassesToParse();  }### Answer:
@Test public void shouldFindNothingForEmptyPackageNames() { ClasspathScanner classpathScanner = scannerFor(emptyStringList(), emptyStringList()); Set<Class<?>> classesToParse = classpathScanner.findClassesToParse(); assertThat(classesToParse, is(empty())); }
@Test public void shouldFindNothingForEmptyPackageNameString() { ClasspathScanner classpathScanner = scannerFor(Lists.newArrayList(""), emptyStringList()); Set<Class<?>> classesToParse = classpathScanner.findClassesToParse(); assertThat(classesToParse, is(empty())); }
@Test public void shouldExcludedConfiguredClasses() { ClasspathScanner classpathScanner = scannerFor(Lists.newArrayList("com.github.valdr.model"), Lists.newArrayList("com.github.valdr.model.a.TestModelWithASingleAnnotatedMember")); Set<Class<?>> classesToParse = classpathScanner.findClassesToParse(); assertThat(classesToParse, notContains(TestModelWithASingleAnnotatedMember.class)); assertThat(classesToParse.size(), is(10)); }