### Question:
CredHubCredentialsGenerator implements CredentialGenerator { private PasswordParameters passwordParameters(int length, boolean includeUppercaseAlpha, boolean includeLowercaseAlpha, boolean includeNumeric, boolean includeSpecial) { return PasswordParameters.builder() .length(length) .excludeUpper(!includeUppercaseAlpha) .excludeLower(!includeLowercaseAlpha) .excludeNumber(!includeNumeric) .includeSpecial(includeSpecial) .build(); } CredHubCredentialsGenerator(ReactiveCredHubOperations credHubOperations); @Override Mono<Tuple2<String, String>> generateUser(String applicationId, String serviceInstanceId, String descriptor,
		int length, boolean includeUppercaseAlpha, boolean includeLowercaseAlpha, boolean includeNumeric,
		boolean includeSpecial); @Override Mono<String> generateString(String applicationId, String serviceInstanceId, String descriptor, int length,
		boolean includeUppercaseAlpha, boolean includeLowercaseAlpha, boolean includeNumeric,
		boolean includeSpecial); @Override Mono<Void> deleteUser(String applicationId, String serviceInstanceId, String descriptor); @Override Mono<Void> deleteString(String applicationId, String serviceInstanceId, String descriptor);  }### Answer:
@Test void passwordParameters() { PasswordParameters params = ReflectionTestUtils .invokeMethod(generator, "passwordParameters", 42, false, false, false, false); assertThat(params.getLength()).isEqualTo(42); assertThat(params.getExcludeUpper()).isTrue(); assertThat(params.getExcludeLower()).isTrue(); assertThat(params.getExcludeNumber()).isTrue(); assertThat(params.getIncludeSpecial()).isFalse(); }