@@ -0,0 +1,1157 @@
+package ca.nrc.cadc.vos;%0A%0Aimport javax.sql.DataSource;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic abstract class VOSpaceFileMetadataSourceTest extends PersistenceTest%0A%7B%0A    private VOSpaceFileMetadataSource vospaceFileMetadataSource;%0A    private DataNode testNode;%0A    %0A    @Before%0A    public void before() throws Exception%0A    %7B%0A        super.commonBefore();%0A        vospaceFileMetadataSource = new VOSpaceFileMetadataSource();%0A        vospaceFileMetadataSource.setNodePersistence(nodeDAO);%0A        %0A        ContainerNode rootContainer = (ContainerNode) nodeDAO.getFromParent(getRootContainerName(), null);%0A        testNode = new DataNode(getVOSURIPrefix() + getRootContainerName() + %22/%22 + getNodeName(%22testNode%22));%0A        nodeDAO.putInContainer(testNode, rootContainer);%0A    %7D%0A    %0A    public abstract DataSource getDataSource();%0A    %0A    public abstract NodeDAO getNodeDAO(DataSource dataSource);%0A    %0A    public abstract String getVOSURIPrefix();%0A    %0A    public abstract String getRootContainerName();%0A    %0A    public abstract String getNodeOwner();%0A    %0A    @Test%0A    public void testMetadata() throws Exception%0A    %7B%0A        %0A    %7D%0A%0A%7D%0A

Put common persistence test code in abstract class PersistenceTest