@Test
	public void testFileEntitySaveAndDelete() {
		FileEntry fileEntry = new FileEntry();
		fileEntry.setContent("HELLO WORLD2");
		fileEntry.setEncoding("UTF-8");
		fileEntry.setPath("helloworld.txt");
		fileEntry.setDescription("WOW");
		fileEntry.getProperties().put("hello", "world");

		int size = repo.findAll(getTestUser()).size();
		repo.save(getTestUser(), fileEntry, fileEntry.getEncoding());

		FileEntry findOne = repo.findOne(getTestUser(), "helloworld.txt", SVNRevision.HEAD);
		assertThat(findOne.getProperties().get("hello"), is("world"));

		fileEntry.setPath("www");
		fileEntry.setFileType(FileType.DIR);
		repo.save(getTestUser(), fileEntry, null);
		fileEntry.setPath("www/aa.py");
		fileEntry.setFileType(FileType.PYTHON_SCRIPT);
		repo.save(getTestUser(), fileEntry, "UTF-8");
		assertThat(repo.findAll(getTestUser()).size(), is(size + 3));

		repo.delete(getTestUser(), Lists.newArrayList("helloworld.txt"));
		assertThat(repo.findAll(getTestUser()).size(), is(size + 2));

		// Attempt to create duplicated path
		fileEntry.setPath("www");
		fileEntry.setFileType(FileType.DIR);
		// It should be allowed.
		repo.save(getTestUser(), fileEntry, null);
		fileEntry.setPath("helloworld.txt");

	}
Locate dumped user1 repo into tempdir

@throws IOException
ngrinder-controller/src/test/java/org/ngrinder/script/repository/FileEntryRepositoryTest.java