GroupedParameterBuilder implements ParameterBuilder { public Optional<String> getDerivedColumnName() { return Optional.ofNullable(derivedColumnName); } GroupedParameterBuilder(final List<List<Object>> groupedParameters, final List<Object> genericParameters); @Override List<Object> getParameters(); List<Object> getParameters(final int count); Optional<String> getDerivedColumnName();  }
@Test public void assertGetDerivedColumnName() { GroupedParameterBuilder actual = new GroupedParameterBuilder(createGroupedParameters(), createGenericParameters()); String derivedColumnName = "derivedColumnName"; actual.setDerivedColumnName(derivedColumnName); assertThat(actual.getDerivedColumnName(), is(Optional.of(derivedColumnName))); }