InstanceZTSProvider implements InstanceProvider { @Override public InstanceConfirmation refreshInstance(InstanceConfirmation confirmation) { throw forbiddenError("ZTS Provider X.509 Certificates cannot be refreshed"); }  @Override Scheme getProviderScheme(); @Override void initialize(String provider, String providerEndpoint, SSLContext sslContext,
            KeyStore keyStore); @Override void setHostnameResolver(HostnameResolver hostnameResolver); @Override InstanceConfirmation confirmInstance(InstanceConfirmation confirmation); @Override InstanceConfirmation refreshInstance(InstanceConfirmation confirmation); boolean validatePublicKeys(final String athenzPublicKey, final String csrPublicKey);  }
@Test public void testRefreshInstance() { InstanceZTSProvider provider = new InstanceZTSProvider(); provider.initialize("provider", "com.yahoo.athenz.instance.provider.impl.InstanceZTSProvider", null, null); try { provider.refreshInstance(null); fail(); } catch (ResourceException ex) { assertEquals(403, ex.getCode()); } provider.close(); }