@Test
public void testIgnoreNativeMethod() {

    CompactFormatter cf = new CompactFormatter();
    String n = UNKNOWN_CLASS_NAME;
    String f = n.concat(".java");
    StackTraceElement s = new StackTraceElement(n, "foo", f, -2);
    assertTrue(s.toString(), cf.ignore(s));
}