httpResponse.addHeader("header", "hval");
httpResponse.setEncoding(Charset.forName("UTF8"));
httpResponse.setHttpStatusCode(404);
GadgetsHandlerApi.ProxyResponse response = gadgetHandler.createProxyResponse(RESOURCE,
httpResponse.create(), ImmutableSet.<String> of("*"), 1000001L);
BeanDelegator.validateDelegator(response);
assertEquals("Content",
new String(Base64.decodeBase64(response.getProxyContent().getContentBase64())));
assertEquals(404, response.getProxyContent().getCode());
assertEquals(2, response.getProxyContent().getHeaders().size());