}
public void testPutGetResourceMeta() {
log.debug("test put get resource meta service");
Resource res = resourceTestFactory.getTextFlowTest();
sourceDocResource.putResource(res.getName(), res, new StringSet(
"gettext;comment"));
ResourceMeta sr = resourceTestFactory.getPoHeaderResourceMeta();
sourceDocResource.putResourceMeta(sr.getName(), sr, new StringSet(
"gettext;comment"));
log.debug("get resource meta");
ClientResponse<ResourceMeta> resourceGetResponse =
sourceDocResource.getResourceMeta(sr.getName(), new StringSet(
"gettext;comment"));
ResourceMeta get = resourceGetResponse.getEntity();
ResourceTestUtil.clearRevs(sr);
ResourceTestUtil.clearRevs(get);
assertThat(sr.toString(), is(get.toString()));