### Question:
ModelValidationScriptService implements ScriptService { public ReplaceCharacterEntityNameValidationConfiguration getReplaceCharacterEntityNameValidationConfiguration() { if (this.authorizationManager.hasAccess(Right.PROGRAM)) { return this.replaceCharacterEntityNameValidationConfiguration; } else { return null; } }  EntityNameValidationManager getManager(); EntityNameValidationConfiguration getConfiguration(); ReplaceCharacterEntityNameValidationConfiguration getReplaceCharacterEntityNameValidationConfiguration(); String transformName(String name); EntityReference transformEntityReference(EntityReference sourceEntity); String transformName(String name, String hint); EntityReference transformEntityReference(EntityReference sourceEntity, String hint); boolean isValid(String name); boolean isValid(EntityReference sourceEntity); boolean isValid(String name, String hint); boolean isValid(EntityReference sourceEntity, String hint);  }### Answer:
@Test public void getReplaceCharacterNameStrategyConfiguration() { when(authorizationManager.hasAccess(Right.PROGRAM)).thenReturn(false); assertNull(scriptService.getReplaceCharacterEntityNameValidationConfiguration()); when(authorizationManager.hasAccess(Right.PROGRAM)).thenReturn(true); assertSame(replaceCharacterEntityNameValidationConfiguration, scriptService.getReplaceCharacterEntityNameValidationConfiguration()); }