assertNotNull(as);
assertNotNull(as.getResourceAdapter());
ValidActivationSpec vas=(ValidActivationSpec)as;
ValidMessageEndpoint me = new ValidMessageEndpoint();
ValidMessageEndpointFactory mef = new ValidMessageEndpointFactory(me);
endpoint.activate(mef, vas);
endpoint.deactivate(mef, vas);
}