### Question:
ParametersService { public boolean isS3GuardTableUsed(String accountId, String cloudPlatform, String location, String dynamoTableName) { return baseParametersRepository.isS3GuardTableUsed(accountId, cloudPlatform, EnvironmentStatus.AVAILABLE_STATUSES, location, dynamoTableName); } 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);  }### Answer:
@Test void isS3GuardTableUsed() { when(baseParametersRepository.isS3GuardTableUsed(any(), any(), any(), any(), any())).thenReturn(true); assertTrue(underTest.isS3GuardTableUsed("accountid", "platform", "region", "tablename")); when(baseParametersRepository.isS3GuardTableUsed(any(), any(), any(), any(), any())).thenReturn(false); assertFalse(underTest.isS3GuardTableUsed("accountid", "platform", "region", "tablename")); }