@Test
public void testSaveTestResult() throws Exception {

	TestResult expected = JSONUtils.readValue(getClass().getResourceAsStream("FilePersister_TestResult.json"),
			TestResult.class);
	PersistMetadata metadata = new PersistMetadata("test1", "testClass");
	persister.saveTestResult(metadata, expected);
	File file = new File(BASE_DIRECTORY + "/test1/testClass/result.json");
	TestResult result = JSONUtils.readValue(file, TestResult.class);
	assertThat(result, is(expected));
}