protected final void createResourceWithCommit() throws Exception {
AbstractResourceForm<T> resourceForm = (AbstractResourceForm<T>) getActionForm();
resourceForm.setResourceName("newResourceName");
updateProperties(resourceForm);
StrutsExecutionStep executionStep = new StrutsExecutionStep(getRequestPath(), getInitialRequestPath());
executionStep.addRequestParameter("actionTarget", "commit");
executionStep.addMessage(getSavedMessage());
executeStep(executionStep);
Collection<T> resources = getResources();
assertEquals("Should be one resource", getInitialResourceCount() + 1, resources.size());