protected ObjectContext getClientContext() {
if (clientContext == null) {
// create with this test case DataContext to allow callers to poke on the
// server side as well as the client
ClientServerChannel clientServerChannel = new ClientServerChannel(
(DataContext) getContext());
LocalConnection connection = new LocalConnection(clientServerChannel);
ClientChannel channel = new ClientChannel(connection);
clientContext = new CayenneContext(channel);
}