Palette { public Collection<OperationMetaData> getOperations() { return this.operations.values(); }  @Subscribe void onOperationAdded(OperationAddedEvent event); Collection<OperationMetaData> getOperations(); Optional<OperationMetaData> getOperationByName(String name);  }
@Test public void testGetAllOperations() { eventBus.post(new OperationAddedEvent(operation)); assertEquals(Collections.singleton(operation), new HashSet<>(palette.getOperations())); }