MockApplication<?> app = application("plugin.controller.resource.binary").init();
//
MockClient client = app.client();
MockViewBridge render = client.render();
MockResourceBridge resource = (MockResourceBridge)client.invoke(render.assertStringResponse());
assertEquals("hello", new String(resource.assertBinaryResponse(), "UTF-8"));
assertEquals("application/octet-stream", resource.getMimeType());
}