	@Test
	public void testUpdateOrCreateDTOList() throws Exception {

		KeyStoreOperations ops = new KeyStoreOperations(storage, keySetJsonReader, keySetJsonWriter);
		List<TestDto> list = new ArrayList<TestDto>();
		list.add(new TestDto(1, "Test1"));
		list.add(new TestDto(2, "Test2"));
		list.add(new TestDto(3, "Test3"));
		KeySet keySet = new KeySet(TestDto.class, "user", "UC_LIST");
		//1x Schreiben , noch nicht existent
		ops.updateOrCreateDTOList(list, keySet, testDtoJsonWriter, Arrays.asList(1L, 2L, 3L));
		assertEquals(4, storage.getLength());

		//is result ok?
		List<TestDto> dtoListFromStore = ops.getDTOList("user", "UC_LIST", TestDto.class, testDtoJsonReader);
		assertEquals(3, dtoListFromStore.size());
		assertTrue(dtoListFromStore.contains(new TestDto(1, "Test1")));
		assertTrue(dtoListFromStore.contains(new TestDto(2, "Test2")));
		assertTrue(dtoListFromStore.contains(new TestDto(3, "Test3")));

		//2x Schreiben , bereits existent
		list = new ArrayList<TestDto>();
		list.add(new TestDto(1, "Test1"));
		list.add(new TestDto(2, "Test2XX"));
		list.add(new TestDto(3, "Test3"));
		ops.updateOrCreateDTOList(list, keySet, testDtoJsonWriter, Arrays.asList(1L, 2L, 3L));
		assertEquals(4, storage.getLength());

		//is result ok?
		dtoListFromStore = ops.getDTOList("user", "UC_LIST", TestDto.class, testDtoJsonReader);
		assertEquals(3, dtoListFromStore.size());
		assertTrue(dtoListFromStore.contains(new TestDto(1, "Test1")));
		assertTrue(dtoListFromStore.contains(new TestDto(2, "Test2XX")));
		assertFalse(dtoListFromStore.contains(new TestDto(2, "Test2")));
		assertTrue(dtoListFromStore.contains(new TestDto(3, "Test3")));


	}