@Test()
public void testGetClientSideScriptNotExists() throws Throwable {
expect((Class) descriptor.getImplementationClass()).andReturn(RegexValidator.class);
expect(scriptService.getScript(environment.getFacesContext(), RegexValidator.class)).andThrow(
new ScriptNotFoundException());
controller.replay();
Collection<? extends LibraryScriptFunction> clientSideValidatorScript = renderer.getClientSideValidatorScript(
environment.getFacesContext(), descriptors);
assertTrue(clientSideValidatorScript.isEmpty());