@Test
public void should_add_submit_task_resource_if_a_start_submit_task_is_contained_in_the_page() throws Exception {

    setUpPageForResourcesTests();
    when(componentVisitor.visit(page)).thenReturn(singleton(submitTaskComponent));
    String properties = new String(pageResource.getResources(page.getId()).toString());
    assertThat(properties).contains("[POST|bpm/userTask]");
}