@Test
public void excludesSeveralIncorrectClassFromCheck() throws Exception {

    final byte[] bytecode = new BytecodeMocker()
        .withSource("class Foo { public Foo clone() { return this; } }")
        .mock();
    final byte[] another = new BytecodeMocker()
        .withSource("class Bar { public Bar clone() { return this; } }")
        .mock();
    final Environment env = new Environment.Mock()
        .withFile("target/classes/Foo.class", bytecode)
        .withFile("target/classes/Bar.class", another)
        .withExcludes("Foo,Bar")
        .withDefaultClasspath();
    new FindBugsValidator().validate(env);
}