public String getName() {
        return name;
    }
@Test
    void testConstructor() {

        Method method = new Method("bar");
        assertNotNull(method);
        assertEquals("bar", method.getName());
    }