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

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