List<String> actual = Lists.newArrayList((matcher.group(1)).split("</.*?>"));
assertContentsAnyOrder("Contents don't match", actual, expected);
}
public void testDataRequestFields() {
DataRequest request = new DataRequest();
assertEquals(null, request.getRequestId());
request.setRequestId(123L);
assertEquals(123, request.getRequestId().longValue());
assertEquals(null, request.getCustomName());
request.setCustomName("test name");
assertEquals("test name", request.getCustomName());
assertEquals(0, request.getDataRequestOptions().size());
DataRequestOption option = new DataRequestOption();
option.setName("name2");
option.setValue("value2");
option.setId("drq1");
option.setDataRequest(request);
request.setDataRequestOptions(Lists.newArrayList(option,
new DataRequestOption("name1", "value1")));
assertEquals(2, request.getDataRequestOptions().size());
assertTrue(request.getDataRequestOptions().contains(option));
assertEquals("drq1", option.getId());
assertEquals("name2", option.getName());
assertEquals("value2", option.getValue());
assertEquals(request, option.getDataRequest());
}