System.out.println("intercept()");
String asisData = (String)ctx.getContextData().get("as_is");
if (!"AS_IS".equals(asisData))
{
throw new RuntimeException("Wrong test metadata: " + asisData);
}
NeedsMarshallingValue marshalledValue = (NeedsMarshallingValue)ctx.getContextData().get("marshalled");
if (marshalledValue == null)
{
throw new RuntimeException("Null marshalled value");
}
if (!marshalledValue.getValue().equals("NEEDS MARSHALLING"))
{
throw new RuntimeException("Wrong marshalled value: " + marshalledValue.getValue());
}
System.out.println("values ok");
interceptorFired = true;
return ctx.proceed();