@Test
 public void postProcessWithTasks() throws Exception {
   final Process process = new Process("Process with tasks");
   int tasksCount = 10;
   createTasksForProcess(process, tasksCount);
   final ProcessDTO processDTO =
       client
           .target("http://localhost:" + RULE.getLocalPort() + "/processes")
           .request()
           .post(Entity.entity(process, APPLICATION_JSON_TYPE))
           .readEntity(ProcessDTO.class);
   // TODO check Response
   assertThat(processDTO.getId()).isNotNull();
   assertThat(processDTO.getName()).isEqualTo(process.getName());
   assertThat(processDTO.getTasks()).isNotEmpty();
   assertThat(processDTO.getTasks().size()).isEqualTo(tasksCount);
 }