### Question:
ScriptConfigurationDataStore implements ScriptingDataStore { @Override public Set<ScriptConfiguration> getAll() throws ScriptException { final Set<ScriptConfiguration> scriptConfigurations = new LinkedHashSet<>(); try { ServiceConfig config = getSubOrgConfig(); Set<String> uuids = config.getSubConfigNames(); for (String uuid : uuids) { scriptConfigurations.add( scriptConfigurationFromMap(uuid, config.getSubConfig(uuid).getAttributesForRead())); } config = getSubGlobalConfig(); uuids = config.getSubConfigNames(); for (String uuid : uuids) { scriptConfigurations.add( scriptConfigurationFromMap(uuid, config.getSubConfig(uuid).getAttributesForRead())); } } catch (SSOException | SMSException e) { throw createAndLogError(logger, RETRIEVE_ALL_FAILED, e, realm); } return scriptConfigurations; } @Inject  ScriptConfigurationDataStore(@Named("ScriptLogger") Logger logger,
                                        @Assisted Subject subject, @Assisted String realm); @Override void save(ScriptConfiguration config); @Override void delete(String uuid); @Override Set<ScriptConfiguration> getAll(); @Override ScriptConfiguration get(String uuid); @Override boolean containsUuid(String uuid); @Override boolean containsName(String name); @Override Set<ScriptConfiguration> get(QueryFilter<String> queryFilter);  }### Answer:
@Test public void shouldFailIfConfigDoesNotExistOnGetAll() throws ScriptException { try { dataStore.getAll(); fail("shouldFailIfConfigDoesNotExistOnGetAll"); } catch (ScriptException e) { assertEquals(e.getScriptErrorCode(), RETRIEVE_ALL_FAILED); } }