public void setUpAfterInjection() throws Exception {
clientContext = createROPContext();
}
protected CayenneContext createROPContext() {
ClientServerChannel clientServerChannel = new ClientServerChannel(serverContext);
UnitLocalConnection connection = new UnitLocalConnection(
clientServerChannel,
serializationPolicy);
ClientChannel channel = new ClientChannel(connection, false,
// we want events, but we don't want thread leaks, so creating single threaded EM.