@Test
public void checkCreateMessageByZipFileMethod()
        throws Exception {

    FeaturesCreatorActor actor = new FeaturesCreatorActor();
    CreateMessageWrapper wrapper = mock(CreateMessageWrapper.class);
    when(wrapper.getFileName()).thenReturn("test-feature-0.0.1-archive.zip");
    when(wrapper.getObservedDirectory()).thenReturn("target/test-classes/");
    doAnswer(invocationOnMock -> {
        try {
            IObject featureDescription = (IObject) ((List) invocationOnMock.getArguments()[0]).get(0);
            assertEquals(featureDescription.getValue(new FieldName("name")), "test-feature");
            assertEquals(
                    featureDescription.getValue(new FieldName("featureLocation")),
                    new Path("target/test-classes/test-feature-0.0.1-archive.zip")
            );
        } catch (Throwable e) {
            throw new RuntimeException(e);
        }
        return null;
    }).when(wrapper).setJsonFeaturesDescription(any());
    actor.createMessageByFile(wrapper);
}