@Test void findByEnvironment() { underTest.findByEnvironment(ENVIRONMENT_ID); verify(baseParametersRepository).findByEnvironmentId(ENVIRONMENT_ID); }
@SuppressWarnings("unchecked") public <T extends BaseParameters> Optional<T> findByEnvironment(Long environmentId) { return baseParametersRepository.findByEnvironmentId(environmentId); }
ParametersService { @SuppressWarnings("unchecked") public <T extends BaseParameters> Optional<T> findByEnvironment(Long environmentId) { return baseParametersRepository.findByEnvironmentId(environmentId); } }
ParametersService { @SuppressWarnings("unchecked") public <T extends BaseParameters> Optional<T> findByEnvironment(Long environmentId) { return baseParametersRepository.findByEnvironmentId(environmentId); } ParametersService(BaseParametersRepository baseParametersRepository,
            Map<CloudPlatform, EnvironmentParametersConverter> environmentParamsConverterMap,
            EnvironmentService environmentService); }
ParametersService { @SuppressWarnings("unchecked") public <T extends BaseParameters> Optional<T> findByEnvironment(Long environmentId) { return baseParametersRepository.findByEnvironmentId(environmentId); } ParametersService(BaseParametersRepository baseParametersRepository,
            Map<CloudPlatform, EnvironmentParametersConverter> environmentParamsConverterMap,
            EnvironmentService environmentService); @SuppressWarnings("unchecked") Optional<T> findByEnvironment(Long environmentId); BaseParameters saveParameters(Long environmentId, ParametersDto parametersDto); BaseParameters saveParameters(Environment environment, ParametersDto parametersDto); boolean isS3GuardTableUsed(String accountId, String cloudPlatform, String location, String dynamoTableName); void updateResourceGroupName(Environment environment, String resourceGroupName); }
ParametersService { @SuppressWarnings("unchecked") public <T extends BaseParameters> Optional<T> findByEnvironment(Long environmentId) { return baseParametersRepository.findByEnvironmentId(environmentId); } ParametersService(BaseParametersRepository baseParametersRepository,
            Map<CloudPlatform, EnvironmentParametersConverter> environmentParamsConverterMap,
            EnvironmentService environmentService); @SuppressWarnings("unchecked") Optional<T> findByEnvironment(Long environmentId); BaseParameters saveParameters(Long environmentId, ParametersDto parametersDto); BaseParameters saveParameters(Environment environment, ParametersDto parametersDto); boolean isS3GuardTableUsed(String accountId, String cloudPlatform, String location, String dynamoTableName); void updateResourceGroupName(Environment environment, String resourceGroupName);  }