@Test
public void mixed() {

    AddressTemplate nothingPresent = AddressTemplate.of("nothing=present");
    AddressTemplate descriptionPresent = AddressTemplate.of("description=present");
    AddressTemplate securityContextPresent = AddressTemplate.of("securityContext=present");
    AddressTemplate allPresent = AddressTemplate.of("all=present");
    LookupResult lookupResult = new LookupResult(
            Sets.newHashSet(nothingPresent, descriptionPresent, securityContextPresent, allPresent));
    lookupResult.markMetadataPresent(descriptionPresent, RESOURCE_DESCRIPTION_PRESENT);
    lookupResult.markMetadataPresent(securityContextPresent, SECURITY_CONTEXT_PRESENT);
    lookupResult.markMetadataPresent(allPresent, RESOURCE_DESCRIPTION_PRESENT);
    lookupResult.markMetadataPresent(allPresent, SECURITY_CONTEXT_PRESENT);
    List<Operation> inputs = rrdOps.create(new LookupContext(lookupResult), false, false);
    assertEquals(3, inputs.size());
    Operation operation = findOperation(inputs, nothingPresent);
    assertEquals(COMBINED_DESCRIPTIONS, operation.get(ACCESS_CONTROL).asString());
    assertTrue(operation.get(OPERATIONS).asBoolean());
    operation = findOperation(inputs, descriptionPresent);
    assertEquals("trim-descriptions", operation.get(ACCESS_CONTROL).asString());
    assertTrue(operation.get(OPERATIONS).asBoolean());
    operation = findOperation(inputs, securityContextPresent);
    assertFalse(operation.get(ACCESS_CONTROL).isDefined());
    assertTrue(operation.get(OPERATIONS).asBoolean());
}