@Test
public void testSetConstructor() {

    Method method = new Method("Bar");
    assertEquals(false, method.isConstructor());
    method.setConstructor(true);
    assertEquals(true, method.isConstructor());
}