@Test
public void correctlyCreatesElementIsPresent() {

    actionConverter = mock(ASTNodeConverter.class);
    List<ApplicationActionConfiguration> mockConfigurations = new ArrayList<>();
    for (ApplicationAction applicationAction: exampleModel.getActions()) {
        ApplicationActionConfiguration actionConfigurationMock = mock(ApplicationActionConfiguration.class);
        mockConfigurations.add(actionConfigurationMock);
        when(actionConverter.convert(applicationAction)).thenReturn(actionConfigurationMock);
    }
    TraversingBasedASTNodeConverter converter = new TraversingBasedASTNodeConverter(actionConverter);
    ApplicationConfiguration actual = converter.convert(exampleModel);
    assertEquals(EXAMPLE_NAME, actual.getApplicationName());
    assertEquals(EXAMPLE_VERSION, actual.getVersion());
    List<ApplicationActionConfiguration> actionConfigurations = actual.getApplicationActionConfigurationList();
    assertEquals(exampleModel.getActions().size(), actionConfigurations.size());
    assertEquals(actionConfigurations, mockConfigurations);
}