@Test
public void test() throws Exception {

    FileNotFoundException fnfe = new FileNotFoundException();
    try {
        ExceptionUtil.rethrow(fnfe, IOException.class);
        fail();
    } catch (IOException e) {
        assertTrue("we won !?!", true);
    }
    ExceptionUtil.rethrow(fnfe, ClassNotFoundException.class);
    try {
        ExceptionUtil.rethrow(fnfe, FileNotFoundException.class);
        fail();
    } catch (FileNotFoundException e) {
        assertTrue("we won !?!", true);
    }
}