@Test
public void testMetadataNotPresent() {

    when(metadataFetcher.fetch()).thenReturn(Collections.emptyMap());
    ec2Plugin = new EC2Plugin(fakeFs, metadataFetcher);
    assertThat(ec2Plugin.isEnabled()).isFalse();
}