Property { public String getPropertySubGroup() { return subGroup; } private  Property(Builder builder); String getPropertyName(); String getPropertyRenderer(); String getPropertyGroup(); String getPropertySubGroupID(); String getPropertySubGroup(); String getPropertyDataType(); String getPropertyType(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void itShouldGiveSubgroupName(){ String expectedSubgroupName = "TestSubGroup"; Property property=new Property.Builder("String","delimiter","TEXT") .group("TextProperties") .subGroup("TestSubGroup").build(); assertEquals(expectedSubgroupName,property.getPropertySubGroup()); }