@Test
  public void testOnEvent_nullDoc_ing() {
    Event event = new DocumentUpdatingEvent();

    replayDefault();
    listener.onEvent(event, null, context);
    verifyDefault();
  }
  @Test
  public void testOnEvent_isRemote_ed() {
    Event event = new DocumentUpdatedEvent();

    expect(remoteObsManContextMock.isRemoteState()).andReturn(true).once();

    replayDefault();
    listener.onEvent(event, docMock, context);
    verifyDefault();
  }
  @Test
  public void testOnEvent_update_ed_noChange() {
    Event event = new DocumentUpdatedEvent();

    expect(remoteObsManContextMock.isRemoteState()).andReturn(false).once();
    expect(docMock.getXObject(eq(classRef))).andReturn(new BaseObject()).once();
    expect(origDocMock.getXObject(eq(classRef))).andReturn(new BaseObject()).once();

    replayDefault();
    listener.onEvent(event, docMock, context);
    verifyDefault();
  }
  @Test
  public void testOnEvent_update_ed() {
    Event event = new DocumentUpdatedEvent();

    expect(remoteObsManContextMock.isRemoteState()).andReturn(false).once();
    expect(docMock.getXObject(eq(classRef))).andReturn(getBaseObject1()).once();
    expect(origDocMock.getXObject(eq(classRef))).andReturn(getBaseObject2()).once();
    obsManagerMock.notify(same(updatedEventMock), same(docMock), same(context));
    expectLastCall().once();

    replayDefault();
    listener.onEvent(event, docMock, context);
    verifyDefault();
  }