public FunSpec getFunSpec() {
        return methodNeedsInjection()
                ? new FunSpecGenerator(
                                uniqueFunctionName,
                                BeforeAll.class,
                                defaultParameterSpecsForEachUnitTest(),
                                generateStatementBody())
                        .generate()
                : new FunSpecGenerator(uniqueFunctionName, generateStatementBody()).generate();
    }
@Test
    public void testThatDeployMethodWasGenerated() {
        Optional<Method> deployFun =
                filteredMethods.stream().filter(m -> m.getName().equals("deploy")).findAny();
        FunSpec deployFunSpec =
                new FunParser(deployFun.get(), greeterContractClass, "deploy").getFunSpec();
        assertEquals(
                deployFunSpec.toString(),
                "@org.junit.jupiter.api.BeforeAll\n"
                        + "public fun deploy(\n"
                        + "  web3j: org.web3j.protocol.Web3j,\n"
                        + "  transactionManager: org.web3j.tx.TransactionManager,\n"
                        + "  contractGasProvider: org.web3j.tx.gas.ContractGasProvider,\n"
                        + ") {\n"
                        + "   greeter = org.web3j.test.contract.Greeter.deploy(web3j, transactionManager, contractGasProvider, \"REPLACE_ME\").send()\n"
                        + "}\n");
    }