@Test
public void testFormDataPopulated() throws Exception {
final String name = "name", action = "action", method = "method",
taskId = "taskId", processId = "processId", enctype = "enctype";
FBForm mockForm = EasyMock.createMock(FBForm.class);
EasyMock.expect(mockForm.getName()).andReturn(name);
EasyMock.expect(mockForm.getAction()).andReturn(action);
EasyMock.expect(mockForm.getProcessId()).andReturn(processId);
EasyMock.expect(mockForm.getTaskId()).andReturn(taskId);
EasyMock.expect(mockForm.getMethod()).andReturn(method);
EasyMock.expect(mockForm.getEnctype()).andReturn(enctype);
mockForm.setName(EasyMock.eq(name));
EasyMock.expectLastCall().once();
mockForm.setAction(EasyMock.eq(action));
EasyMock.expectLastCall().once();
mockForm.setMethod(EasyMock.eq(method));
EasyMock.expectLastCall().once();
mockForm.setTaskId(EasyMock.eq(taskId));
EasyMock.expectLastCall().once();
mockForm.setProcessId(EasyMock.eq(processId));
EasyMock.expectLastCall().once();
mockForm.setEnctype(EasyMock.eq(enctype));
EasyMock.expectLastCall().once();
EasyMock.expect(view.getFormDisplay()).andReturn(mockForm).anyTimes();
EasyMock.replay(view, drag, mockForm);
bus.addHandler(UndoableEvent.TYPE, new UndoableHandler() {