@Test
public void update() {
ReportTO report = new ReportTO();
report.setName("testReportForUpdate");
report.addReportletConf(new UserReportletConf("first"));
report.addReportletConf(new UserReportletConf("second"));
report = restTemplate.postForObject(BASE_URL + "report/create", report, ReportTO.class);
assertNotNull(report);
assertEquals(2, report.getReportletConfs().size());
report.addReportletConf(new UserReportletConf("last"));
ReportTO updated = restTemplate.postForObject(BASE_URL + "report/update", report, ReportTO.class);
assertNotNull(updated);
assertEquals(3, updated.getReportletConfs().size());
}