	@Test
	public void testActivateFilterFileExistsOverwrite() throws IOException, URISyntaxException {

		/* Prepare data. */
		assertEquals(0, this.baseDir.list().length);
		createTempFiles(SYNC_FILTER_FN);
		this.props.put(InitialRegistrationImpl.PROP_OVERWRITE_CONFIG_FILES, true);

		/* Invoke method. */
		this.initialRegistration.activate(this.props);

		/* Check its results. */
		FileAssert.assertEquals(getResource("data1-config.properties"), this.generatedConfigFile);
		FileAssert.assertEquals(getResource("data1-filter.xml"), this.generatedFilterFile);
		verify(this.serviceSettings, times(1)).addSyncRoot(this.baseDir, 3000l);
	}