public void setConstructor(boolean constructor) {
        this.constructor = constructor;
    }
@Test
    void testSetConstructor() {

        Method method = new Method("Bar");
        assertFalse(method.isConstructor());

        method.setConstructor(true);
        assertTrue(method.isConstructor());
    }