@Test
public void ignoresCorrectlyAddedThrows() throws Exception {

    final byte[] bytecode = new BytecodeMocker()
        .withSource(
            Joiner.on("\n").join(
                "package test;",
                "final class Main {",
                "public void foo() throws InterruptedException {",
                "Thread.sleep(1);",
                "}",
                "}"
            )
        )
        .mock();
    final Environment env = new Environment.Mock()
        .withFile("target/classes/Main.class", bytecode)
        .withDefaultClasspath();
    new FindBugsValidator().validate(env);
}