@Test
public void should_combined_start_process_submit_task_and_bonita_resources() throws Exception {

    setUpPageForResourcesTests();
    when(componentVisitor.visit(page))
            .thenReturn(asList(startProcessComponent, submitTaskComponent));
    page.setVariables(singletonMap("foo", anApiVariable("/bonita/API/bpm/userTask")));
    String properties = new String(pageResource.getResources(page.getId()).toString());
    assertThat(properties).contains("[GET|bpm/userTask, POST|bpm/process, POST|bpm/userTask]");
}