"import test.load.User000\n" + //
"@javax.ws.rs.Path('test/load') class Test000 {\n" + //
"def user = new User000(name:'test')\n" + //
"@javax.ws.rs.GET def m() {user}" + //
"}\n");
EnvironmentContext ctx = new EnvironmentContext();
ctx.put(SecurityContext.class, adminSecurityContext);
int before = binder.getSize();
ContainerResponse cres = launcher.service("POST", "/script/groovy/load/db1/ws" + path, "", null, null, ctx);
assertEquals(400, cres.getStatus());
int after = binder.getSize();