@Test
public void testSetSynchronized() {

    Method method = new Method("bar");
    assertEquals(false, method.isSynchronized());
    method.setSynchronized(true);
    assertEquals(true, method.isSynchronized());
}