1. <dependency>
    2. <groupId>io.micronaut</groupId>
    3. <artifactId>micronaut-http-server-netty</artifactId>
    4. <scope>test</scope>
    5. </dependency>
    1. <dependency>
    2. <artifactId>micronaut-function-web</artifactId>
    3. <scope>test</scope>
    4. </dependency>
    For further information on the use of @FunctionClient, please see .
    1. void "test invoking a local function"() {
    2. given:
    3. expect:
    4. mathClient.max() == Integer.MAX_VALUE.toLong()
    5. mathClient.rnd(1.6) == 2
    6. mathClient.sum(new Sum(a:5,b:10)) == 15