@Test
public void testReprocessStatsMarshalling() {
// printout a sample request
ReprocessStatsRequest rsReq = new ReprocessStatsRequest();
rsReq.add("testStats1");
rsReq.add("testStats2");
JAXB.marshal(rsReq, System.out);
// test loading / unmarshalling request
File reproFile = loadFile("reprocess/reprocessStats.xml");
assertNotNull("Error finding file", reproFile);
ReprocessRequest req = RequestReader.load(reproFile);
assertNotNull("Error unmarshalling file", req);
assertTrue(req instanceof ReprocessStatsRequest);
ReprocessStatsRequest sreq = (ReprocessStatsRequest)req;
assertEquals(2, sreq.getStatsNames().size());
}