### Question:
LdapConfigRegisterService extends AbstractConfigRegister { @Override public void delete(Stack stack) { ldapConfigService.deleteAllInEnvironment(stack.getEnvironmentCrn(), stack.getAccountId()); }  @Override void register(Long stackId); LdapConfig createLdapConfig(Long stackId, String bindDn, String bindPassword, String clusterName, String environmentCrn); @Override void delete(Stack stack); static final String USER_GROUP; static final String BIND_DN; static final String USER_SEARCH_BASE; static final String GROUP_SEARCH_BASE; static final String USER_DN_PATTERN; static final String PROTOCOL; static final String USER_NAME_ATTRIBUTE; static final String USER_OBJECT_CLASS; static final String GROUP_MEMBER_ATTRIBUTE; static final String GROUP_NAME_ATTRIBUTE; static final String GROUP_OBJECT_CLASS; static final Integer SERVER_PORT; }### Answer:
@Test void testDelete() { Stack stack = new Stack(); stack.setEnvironmentCrn("env"); stack.setAccountId("acc"); underTest.delete(stack); verify(ldapConfigService).deleteAllInEnvironment(stack.getEnvironmentCrn(), stack.getAccountId()); }