@Override
    public String generatePoetStringTypes() {
        StringBuilder symbolBuilder = new StringBuilder();
        if (getMethodReturnType().equals(theContract)) {
            symbolBuilder.append("$L = $T.");
        } else {
            symbolBuilder.append("$T $L = $L.");
        }
        symbolBuilder
                .append(method.getName())
                .append("(")
                .append(getPoetFormatSpecifier())
                .append(").send()");

        return symbolBuilder.toString();
    }
@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());
    }