@Override
    protected String generatePoetStringTypes() {
        StringBuilder symbolBuilder = new StringBuilder();
        if (getMethodReturnType().equals(theContract)) {
            symbolBuilder.append(" %L = %T.");
        } else {
            symbolBuilder.append("val %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);
        KotlinParser parser =
                new KotlinParser(greeterContractClass, deploy, new KotlinMappingHelper());
        assertEquals(" %L = %T.deploy(%L, %L, %L, %S).send()", parser.generatePoetStringTypes());
    }