    @Test
    public void testGenerateJavaPoetStringTypesWhenReturnTypeIsContract() {

        List<Method> listOfFilteredMethods = MethodFilter.extractValidMethods(greeterContractClass);
        Method deploy =
                listOfFilteredMethods.stream()
                        .filter(m -> m.getName().equals("deploy"))
                        .collect(Collectors.toList())
                        .get(0);
        JavaParser parser = new JavaParser(greeterContractClass, deploy, new JavaMappingHelper());

        assertEquals("$L = $T.deploy($L, $L, $L, $S).send()", parser.generatePoetStringTypes());
    }