  @Test
  public void extractsMethodReturnType() {

    String method = "m" + someValue();
    String returns = someValue();
    code.add("public class C {");
    code.add("  public %s %s(int foo) {", returns, method);
    code.add("  }");
    code.add("}");

    assertEquals("Returns", returns, code.methodReturns(method));
    assertEquals("Returns of non-existing method", "", code.methodReturns(someValue()));
  }