@Test
public void testGetRule() {

    String mockKey = "mockKey1";
    String mockValue = String.valueOf(new Random().nextInt());
    putMockRuleData(mockKey, mockValue, DEFAULT_NAMESPACE);
    apolloDynamicConfiguration = new ApolloDynamicConfiguration(url);
    assertEquals(mockValue, apolloDynamicConfiguration.getConfig(mockKey, DEFAULT_NAMESPACE, 3000L));
    mockKey = "notExistKey";
    assertNull(apolloDynamicConfiguration.getConfig(mockKey, DEFAULT_NAMESPACE, 3000L));
}