class AbstractMethodBuilder extends AbstractBuilder<T, B> {

    public B retries(Integer retries) {
        this.retries = retries;
        return getThis();
    }

}

class AbstractMethodBuilderTest {

    @Test
    void retries() {

        MethodBuilder builder = new MethodBuilder();
        builder.retries(3);

        Assertions.assertEquals(3, builder.build().getRetries());
    }

}