}
@Test
public void validationFailsTest() throws Exception
{
Gateway g = GatewayFactory.get(GATEWAY_ADDRESS);
//Give it rubbish, expect an error and no graph
String dispelRequest = "This is a nonsense request";
ValidationResult v = g.validate(dispelRequest);
assertFalse(v.isValid());
assertFalse(v.getErrors().trim().isEmpty());
assertEquals(0, v.getRegisteredObjects().size());