new TestUpdatePublications(ObjectStoreWriterFactory.getObjectStoreWriter("osw.genomic-test"), sw).execute();
ObjectStoreWriter objectStoreWriter = ObjectStoreWriterFactory.getObjectStoreWriter("osw.genomic-test"); new TestUpdatePublications(objectStoreWriter, sw).executeInternal(sw);
    public void testUpdatePublications() throws Exception {        StringWriter sw = new StringWriter();        new TestUpdatePublications(ObjectStoreWriterFactory.getObjectStoreWriter("osw.genomic-test"), sw).execute();        List expected = FullParser.parse(getClass().getClassLoader().getResourceAsStream("UpdatePublicationsTest_tgt.xml"));        Assert.assertEquals(new HashSet(expected), new HashSet(FullParser.parse(new ByteArrayInputStream(sw.toString().getBytes()))));    }