public void shouldBeAbleToReturnFullExtendedOperationChain() throws CacheOperationFailedException {
cache.addNamedOperation(standard, false, standardUser);
ExtendedNamedOperation alt = alternative;
alt.setOperationName("alt");
cache.addNamedOperation(alt, false, advancedUser);
<BUG>Set<NamedOperation> actual = cache.getAllNamedOperations(standardUser, false);

assert(actual.contains(standard));

assert(actual.contains(alt));

assert(actual.size() == 2);
</BUG>
}

public void shouldBeAbleToReturnFullExtendedOperationChain() throws CacheOperationFailedException {
cache.addNamedOperation(standard, false, standardUser);
ExtendedNamedOperation alt = alternative;
alt.setOperationName("alt");
cache.addNamedOperation(alt, false, advancedUser);
Set<NamedOperation> actual = Sets.newHashSet(cache.getAllNamedOperations(standardUser, false));
assert (actual.contains(standard));
assert (actual.contains(alt));
assert (actual.size() == 2);
