### Question:
Constants { static boolean isWhitelisted(final String internalName) { if (!internalName.startsWith("org/objectweb/asm/")) { return false; } String member = "(Annotation|Class|Field|Method|Module|RecordComponent|Signature)"; return internalName.contains("Test$") || Pattern.matches( "org/objectweb/asm/util/Trace" + member + "Visitor(\\$.*)?", internalName) || Pattern.matches( "org/objectweb/asm/util/Check" + member + "Adapter(\\$.*)?", internalName); } private  Constants();   }### Answer:
@Test public void testIsWhitelisted() { assertFalse(Constants.isWhitelisted("org/jacoco/core/internal/flow/ClassProbesVisitor")); assertFalse(Constants.isWhitelisted("org/objectweb/asm/ClassWriter")); assertFalse(Constants.isWhitelisted("org/objectweb/asm/util/CheckClassVisitor")); assertFalse(Constants.isWhitelisted("org/objectweb/asm/ClassWriterTest")); assertTrue(Constants.isWhitelisted("org/objectweb/asm/ClassWriterTest$DeadCodeInserter")); assertTrue(Constants.isWhitelisted("org/objectweb/asm/util/TraceClassVisitor")); assertTrue(Constants.isWhitelisted("org/objectweb/asm/util/CheckClassAdapter")); }