SelectDataStoreOperation implements DataStoreOperation<List<E>, K, E> { @Override public String toString() { return descriptor.toString(); } SelectDataStoreOperation(QueryDescriptor descriptor); QueryDescriptor getDescriptor(); @Override List<E> execute(DataStore<K, E> store, RepositoryConfiguration configuration, Invocation invocation); @Override String toString();  }
@Test public void testToString() { final List<List<Parameter>> branches = Collections.emptyList(); final DefaultQueryDescriptor descriptor = new DefaultQueryDescriptor(false, null, 0, null, null, branches, null, null); final DataStoreOperation<List<Person>, String, Person> operation = new SelectDataStoreOperation<>(descriptor); assertThat(operation.toString(), is(descriptor.toString())); }