@Test
public void testHasNoNative() throws IOException {

    MockClassHasNativeVisitor cv = new MockClassHasNativeVisitor();
    String className =
        this.getClass().getCanonicalName() + "$" + ClassWithoutNative.class.getSimpleName();
    ClassReader cr = new ClassReader(className);
    cr.accept(cv, 0 /* flags */);
    assertArrayEquals(new String[0], cv.getMethodsFound());
    assertFalse(cv.hasNativeMethods());
}