@Test
public void testInitialize() {

    
    InstanceAWSProvider provider = new InstanceAWSProvider();
    System.setProperty(InstanceAWSProvider.AWS_PROP_PUBLIC_CERT, "src/test/resources/aws_public.cert");
    System.setProperty(InstanceAWSProvider.AWS_PROP_BOOT_TIME_OFFSET, "60");
    provider.initialize("provider", "com.yahoo.athenz.instance.provider.impl.InstanceAWSProvider", null, null);
    assertNotNull(provider.awsPublicKey);
    assertEquals(provider.bootTimeOffset, 60000);
    provider.close();
    System.clearProperty(InstanceAWSProvider.AWS_PROP_PUBLIC_CERT);
    System.clearProperty(InstanceAWSProvider.AWS_PROP_BOOT_TIME_OFFSET);
}