@Test
public void testExtractSignature_with_return_type() throws CannotCompileException, NotFoundException {

    //GIVEN
    CtClass targetClass = ClassPool.getDefault().makeClass(
            "Target" + TestCounter.testCounter++);
    CtMethod fooMethod = CtNewMethod.make("public int foo() { return 0; }", targetClass);
    targetClass.addMethod(fooMethod);
    //WHEN
    String extractSignature = signatureExtractor.createJavaSignature(fooMethod);
    //THEN
    assertEquals("public int foo()", extractSignature);
}