	@Test
	public void testDoNotLoadDuplicatesFromFile() throws Exception {

		
		clearCurrentTempFile();
		
		tempFile = File.createTempFile("test", ".properties");
		tempFile.deleteOnExit();
		String newMappings = 
				  ".*usera.*=usera@localhost\n" + 
				  ".*usera.*=usera@localhost\n" + 
				  ".*usera.*=usera@localhost\n" + 
				  "                                       \n"; // erase existing stuff
		FileUtils.writeStringToFile(tempFile, newMappings);		
		
		store = new PropertiesBasedDatastore(new FileSystemResource(tempFile), 1000);
		assertEquals(store.getAddressesForApplication("usera@localhost").size(),1);
	}