}
private static Collection<String> getClassesInPackage(String packageName, String sampleClass) {
String sampleClassPathSuffix = sampleClass.replaceAll("\\.", "/") + ".class";
String sampleClassPath = CheckParserUsagesDT.class.getClassLoader().getResource(sampleClassPathSuffix).getPath();
assertThat(sampleClassPath, new StringEndsWith(sampleClassPathSuffix));
String packagePath = sampleClassPath.substring(0,sampleClassPath.length()-sampleClassPathSuffix.length()) +
packageName.replaceAll("\\.", "/");
return getAllClassesInDirectory(new File(packagePath));
}