	@Test
	public final void testInsert() {


		ObjectStore<XdccRequest> store = new ObjectStore<XdccRequest>(
				"requests.neodatis", XdccRequest.class) {
			@Override
			public List<XdccRequest> searchByExample(XdccRequest e) {
				// TODO Auto-generated method stub
				return null;
			}

			@Override
			protected Class<XdccRequest> getEntityType() {
				return XdccRequest.class;
			}
		};
		try {
			XdccRequest req = new XdccRequest();
			req.setChannel(UUID.randomUUID().toString());
			req.setDescription("description");
			req.setDestination("./");
			req.setHost("127.0.0.1");
			req.setPeer("peer");
			req.setResource("12");
			req.setTtl(324234234);
			req = XdccRequestCreator.identify(req);
			Assert.assertNotNull(store.insert(req));
			long value = store.count();
			Assert.assertTrue("Value is " + value, value == 1);
			store.clear();
			Assert.assertTrue(store.count() == 0);

		} finally {

			Assert.assertTrue(store.close());
		}
	}