public static void foo() throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException {
        //Throw random Exception
        Random random = new Random();
        int i = random.nextInt(2 + 1);
        switch (i) {
            case 0:
                throw new ClassNotFoundException();
            case 1:
                throw new NoSuchMethodException();
            case 2:
                throw new NoSuchFieldException();
        }
    }