@Test
public void testSetReturnType() {

    Method method = new Method("bar");
    assertFalse(method.getReturnType().isPresent());
    method.setReturnType(FullyQualifiedJavaType.getIntInstance());
    assertEquals(FullyQualifiedJavaType.getIntInstance(), method.getReturnType().get());
}