@Test
public void testFetchProjectProperties() throws Exception {

  final Props props1 = new Props();
  props1.setSource("source1");
  props1.put("key1", "value1");
  props1.put("key2", "value2");
  final Props props2 = new Props();
  props2.setSource("source2");
  props2.put("keykey", "valuevalue1");
  props2.put("keyaaa", "valueaaa");
  final List<Props> list = Arrays.asList(props1, props2);
  createThreeProjects();
  final Project project = this.loader.fetchProjectByName("mytestProject");
  this.loader.uploadProjectProperties(project, list);
  final Map<String, Props> propsMap = this.loader
      .fetchProjectProperties(project.getId(), project.getVersion());
  Assert.assertEquals(propsMap.get("source1").get("key2"), "value2");
  Assert.assertEquals(propsMap.get("source2").get("keyaaa"), "valueaaa");
}