@Test
public void testCreateWithReplica() {

    System.setProperty(ZMSConsts.ZMS_PROP_AWS_RDS_MASTER_INSTANCE, "instance");
    System.setProperty(ZMSConsts.ZMS_PROP_AWS_RDS_REPLICA_INSTANCE, "replica");
    System.setProperty(ZMSConsts.ZMS_PROP_AWS_RDS_USER, "rds-user");
    System.setProperty(ZMSConsts.ZMS_PROP_AWS_RDS_IAM_ROLE, "role");
    System.setProperty(ZMSConsts.ZMS_PROP_AWS_RDS_CREDS_REFRESH_TIME, "30000");
    AWSObjectStoreFactory factory = new TestAWSObjectStoreFactory();
    ObjectStore store = factory.create(null);
    // sleep a couple of seconds for the updater to run
    try {
        Thread.sleep(2000);
    } catch (InterruptedException ignored) {
    }
    assertNotNull(store);
}