@Test
public void testEmptyRefreshAttestationData() {

    InstanceAWSECSProvider provider = new InstanceAWSECSProvider();
    provider.initialize("provider", "com.yahoo.athenz.instance.provider.impl.InstanceAWSECSProvider", null, null);
    InstanceConfirmation confirmation = new InstanceConfirmation();
    try {
        provider.refreshInstance(confirmation);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), ResourceException.FORBIDDEN);
    }
    
    confirmation.setAttestationData("");
    try {
        provider.refreshInstance(confirmation);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), ResourceException.FORBIDDEN);
    }
}