@Test
public void checkUnzipOnBrokenFeatureFormat()
        throws Exception {

    UnzipFeatureActor actor = new UnzipFeatureActor();
    UnzipFeatureWrapper wrapper = mock(UnzipFeatureWrapper.class);
    IFeature feature = mock(IFeature.class);
    when(feature.getName()).thenReturn("test-feature");
    when(feature.getDependencies()).thenReturn(null);
    String fileName = "target/test-classes/broken-test-feature-VERSION-archive.zip";
    when(feature.getFeatureLocation()).thenReturn(
            new Path(fileName)
    );
    when(wrapper.getFeature()).thenReturn(feature);
    actor.unzip(wrapper);
    verify(feature, times(1)).setFailed(true);
}