@Test
	public void testInsertAndDeleteOfArrays() throws Exception
	{

		PersistenceManager pm = new PersistenceManager(driver,database,login,password);
		for(int x = 0;x<10;x++)
		{
			//insert 10 objects
			for(int t = 0;t<10;t++)
			{
				ObjectArrayContainingObject aco = new ObjectArrayContainingObject();
				aco.setData(new Object[]{x*10.0+t,2.0,3.0});
				pm.saveObject(aco);
			}
			assertEquals(x*5+10,pm.getCount(ObjectArrayContainingObject.class, new All()));
			//delete 5 objects
			for(int t = 0;t<5;t++)
			{
				ObjectArrayContainingObject match = new ObjectArrayContainingObject();
				match.setData(new Object[]{x*10.0+t});
				pm.deleteObjects(ObjectArrayContainingObject.class, new Equal(match));
			}
			assertEquals((x+1)*5,pm.getCount(ObjectArrayContainingObject.class, new All()));
		}
		//delete all objects
		pm.deleteObjects(ObjectArrayContainingObject.class, new All());
		assertEquals(0, pm.getCount(ObjectArrayContainingObject.class, new All()));
		pm.close();
	}