@Test
public void test() {

    SampleNode testSample = testSample();
    final List<StackSampleElement> samples = new ArrayList<>();
    Converters.convert(Methods.ROOT, testSample, -1, 0,  samples::add);
    SampleNode back = Converter.convert(samples.iterator());
    Assert.assertEquals(testSample, back);
}