public void test() {
InputStream is = getClass().getResourceAsStream("/records_by_name_and_type.xml");
FluentIterable<ResourceRecordDetail> expected = expected();
ResourceRecordListHandler handler = injector.getInstance(ResourceRecordListHandler.class);
FluentIterable<ResourceRecordDetail> result = factory.create(handler).parse(is);
assertEquals(result.toList().toString(), expected.toList().toString());
}