boolean isPublicAndStatic() {
        int modifiers = mainMethod.getModifiers();
        return isPublic(modifiers) && isStatic(modifiers);
    }
@Test
    public void testPublicAndStaticForSelf() throws NoSuchMethodException {
        Method method = MainMethodFinderTest.class.getDeclaredMethod("testPublicAndStaticForSelf");

        MainMethodFinder mainMethodFinder = new MainMethodFinder();
        mainMethodFinder.mainMethod = method;
        boolean publicAndStatic = mainMethodFinder.isPublicAndStatic();
        assertFalse(publicAndStatic);
    }