@Test
public void testOverridenRanking_shouldNotBeAltered() throws Exception {

    File connectorFile = new File(temporaryFolder.getRoot() + "/etc/mydomain+aconnector+myroot.connector");
    FileUtils.touch(connectorFile);
    FileUtils.writeStringToFile(connectorFile, testConnectorData + "\n"
            + "property." + Constants.SERVICE_RANKING + "=24");
    connectorDeployerService.install(connectorFile);
    ServiceReference ref =
        bundleContext.getServiceReferences(NullDomain.class.getName(),
            String.format("(%s=%s)", Constants.SERVICE_RANKING, 24))[0];
    assertThat(ref, not(nullValue()));
}