@SuppressWarnings({ "rawtypes", "unchecked" })

@Test
public void testNewMatchAdditionalTemplate() throws Exception {
	URI uri = URI.createURI("foo/test.properties");
	PropertyFileDescriptor descriptor = getFixture().createDescriptor(template, uri);
	template.getDescriptors().add(descriptor);
	Resolvable folder = PropertyResourceUtil.getOrCreateFolder(template, "foo");
	folder.getChildren().add(descriptor);
	uri = URI.createURI("foo/test_de.properties");
	PropertyFileDescriptor translationDescriptor = getFixture().createDescriptor(template, uri);
	translation.getDescriptors().add(translationDescriptor);
	folder = PropertyResourceUtil.getOrCreateFolder(translation, "foo");
	folder.getChildren().add(translationDescriptor);
	translationDescriptor.setMaster(descriptor);
	getFixture().newMatch(new File("workspace/test/master/foo/test2.properties"));
	assertEquals("Must be added",2,template.getChild("foo").getChildren().size());
	assertEquals("Must be added",2,translation.getChild("foo").getChildren().size());
}