@BeforeClass
public void setup() {
ctx = new ClassPathXmlApplicationContext("/META-INF/spring/*-context.xml");
datastoreDAO = ctx.getBean(IDatastoreDAO.class);
VcDatastoreEntity dsEntity1 = new VcDatastoreEntity();
dsEntity1.setName("ds1");
dsEntity1.setVcDatastore("test-ds1");
dsEntity1.setType(Datastore.DatastoreType.LOCAL);
VcDatastoreEntity dsEntity2 = new VcDatastoreEntity();
dsEntity2.setName("ds2");
dsEntity2.setVcDatastore("test-ds2");
dsEntity2.setType(Datastore.DatastoreType.SHARED);
VcDatastoreEntity dsEntity3 = new VcDatastoreEntity();
dsEntity3.setName("ds3");
dsEntity3.setVcDatastore("test-ds3");
dsEntity3.setType(Datastore.DatastoreType.LOCAL);
datastoreDAO.findAll();
datastoreDAO.insert(dsEntity1);
datastoreDAO.insert(dsEntity2);
datastoreDAO.insert(dsEntity3);