EasyMock.expect(view.getFormDisplay()).andReturn(mockForm);
final FormRepresentation formRep = new FormRepresentation();
final String saveType = "ANYTHING";
EasyMock.expect(mockForm.createRepresentation()).andReturn(formRep);
EasyMock.replay(view, drag, mockForm);
bus.addHandler(GetFormRepresentationResponseEvent.TYPE, new GetFormRepresentationResponseHandler() {
@Override
public void onEvent(GetFormRepresentationResponseEvent event) {
assertEquals("both forms should be the same", event.getRepresentation(), formRep);
assertEquals("both saveTypes should be the same", event.getSaveType(), saveType);
}