BasicSection implements Section { @Override public int getOrder() { return order; } BasicSection(String id);  BasicSection(String id, String style);  BasicSection(String id, String style, String groupingTagPattern); @Override Section addFeature(Feature feature); @Override String render(CukedoctorDocumentBuilder docBuilder, I18nLoader i18n, DocumentAttributes documentAttributes); @Override int getOrder(); @Override Stream<Feature> getFeatures();  }
@Test public void orderShouldBeIntMaxIfThereAreNoChildren() { final BasicSection section = createSection(); assertEquals(Integer.MAX_VALUE, section.getOrder()); }