KiePMMLSegmentation extends AbstractKiePMMLComponent { public List<KiePMMLSegment> getSegments() { return segments; } protected  KiePMMLSegmentation(String name, List<KiePMMLExtension> extensions, MULTIPLE_MODEL_METHOD multipleModelMethod); static Builder builder(String name, List<KiePMMLExtension> extensions, MULTIPLE_MODEL_METHOD multipleModelMethod); MULTIPLE_MODEL_METHOD getMultipleModelMethod(); List<KiePMMLSegment> getSegments(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void getSegments() { assertNull(KIE_PMML_SEGMENTATION.getSegments()); final List<KiePMMLSegment> segments = getKiePMMLSegments(); KIE_PMML_SEGMENTATION = BUILDER.withSegments(segments).build(); assertEquals(segments, KIE_PMML_SEGMENTATION.getSegments()); }