public void shouldReturnSetOfNamedOperationsThatAUserCanExecute() 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, true);

assert(actual.contains(standard.getBasic()));

assert(actual.contains(alt.getBasic()));

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

public void shouldReturnSetOfNamedOperationsThatAUserCanExecute() 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, true));
assert (actual.contains(standard.getBasic()));
assert (actual.contains(alt.getBasic()));
assert (actual.size() == 2);
}
