InMemoryBackend implements BusinessParametersBackend<InMemoryQuery<?>> { @Override public <V> void update(String group, BackendQuery<? extends InMemoryQuery<?>, V> query, V value) { GroupData groupData = getGroupData(group); setValue(value, query, groupData); } InMemoryBackend(InMemoryBackendGroupFactoryContext factoryContext, Supplier<Stream<ParameterGroupDefinition<?>>> definitions, GroupDataStore dataStore); @Override BackendQuery<? extends InMemoryQuery<?>, ?> internalizeQuery(String groupName, Object queryObject, BackendWireFormatterContext context); @Override V select(String group, BackendQuery<? extends InMemoryQuery<?>, V> query); @Override void update(String group, BackendQuery<? extends InMemoryQuery<?>, V> query, V value); @Override EntryData getEntry(String group, String id); @Override void update(String group, String id, Map<String, String> entry); void insert(String group, Map<String, String> entry); R exportEntries(String groupName, Collector<? super BackendEntry, ?, R> collector); @Override Collection<String> getGroupNames(); @Override ParameterGroupDefinition<?> getDefinition(String groupName);  }
@Test public void testSet() { when(inMemoryQuery.getEntryModification(eq(value), streamWithOnly(entry1Data))).thenReturn(entryModification); backend.update(group1Name, backendQuery, value); verifyZeroInteractions(entry2Data); }