// Then:
verify(dispatcher).execute(actionCaptor.capture(),
resultCaptor.capture());
UpdateTransUnit updateTransUnit = actionCaptor.getValue();
assertThat(updateTransUnit.getUpdateRequests(), hasSize(1));
assertThat(updateTransUnit.getUpdateType(),
equalTo(TransUnitUpdated.UpdateType.WebEditorSave));
TransUnitUpdateRequest request =
updateTransUnit.getUpdateRequests().get(0);
assertThat(request.getTransUnitId(), equalTo(TRANS_UNIT_ID));
assertThat(request.getNewContents(), Matchers.contains("new content"));
assertThat(request.getBaseTranslationVersion(), equalTo(VER_NUM));
assertThat(request.getNewContentState(), equalTo(ContentState.Approved));
}