@Test
public void testBuildingFunctionTransactionThatReturnsValueReportsWarning() throws Exception {

    AbiDefinition functionDefinition = new AbiDefinition(
            false,
            Arrays.asList(
                    new AbiDefinition.NamedType("param", "uint8")),
            "functionName",
            Arrays.asList(
                    new AbiDefinition.NamedType("result", "uint8")),
            "type",
            false);
    solidityFunctionWrapper.buildFunction(functionDefinition);
    //CHECKSTYLE:OFF
    verify(generationReporter).report(
            "Definition of the function functionName returns a value but is not defined as a view function. " +
                    "Please ensure it contains the view modifier if you want to read the return value");
    //CHECKSTYLE:ON
}