@Test
public void testPatch() throws Throwable {
ResourcePoolState rp = createRp();
assertEquals(EnumSet.noneOf(ResourcePoolProperty.class), rp.properties);
assertTrue(isNonElasticQuery(rp.query));
String epzLink = createEpz(rp.documentSelfLink, "tag1", "tag2").documentSelfLink;
rp = getDocument(ResourcePoolState.class, rp.documentSelfLink);
assertEquals(EnumSet.of(ResourcePoolProperty.ELASTIC), rp.properties);
assertFalse(isNonElasticQuery(rp.query));
patchEpz(epzLink, "tag3", "tag4");
rp = getDocument(ResourcePoolState.class, rp.documentSelfLink);
assertEquals(EnumSet.of(ResourcePoolProperty.ELASTIC), rp.properties);
}