@@ -0,0 +1,1175 @@
+package org.springframework.cloud.localconfig;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.List;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.contrib.java.lang.system.ProvideSystemProperty;%0Aimport org.springframework.cloud.service.ServiceInfo;%0Aimport org.springframework.cloud.service.common.MongoServiceInfo;%0A%0Apublic class LocalConfigServiceOverrideTest extends AbstractLocalConfigConnectorTest %7B%0A%0A    @Rule%0A    public final ProvideSystemProperty OVERRIDE_MYSQL =%0A        new ProvideSystemProperty(%0A            %22spring.cloud.candygram%22,%0A            %22mongodb://youruser:yourpass@40.30.20.10:4321/dbname%22);%0A%0A    @Test%0A    public void serviceOverride() %7B%0A        List%3CServiceInfo%3E services = connector.getServiceInfos();%0A        ServiceInfo service = getServiceInfo(services, %22candygram%22);%0A        assertNotNull(service);%0A        assertTrue(service instanceof MongoServiceInfo);%0A        MongoServiceInfo mongo = (MongoServiceInfo) service;%0A        assertEquals(%22youruser%22, mongo.getUserName());%0A        assertEquals(4321, mongo.getPort());%0A    %7D%0A%0A%7D%0A

Add test to override programmatic definition from system properties.