EntitySetImpl implements EntitySet { private EntitySetImpl(Builder builder) { this.name = builder.name; this.typeName = builder.typeName; this.isIncludedInServiceDocument = builder.isIncludedInServiceDocument; this.navigationPropertyBindings = Collections.unmodifiableList(builder.navigationBuilder); } private  EntitySetImpl(Builder builder); @Override String getName(); @Override String getTypeName(); @Override boolean isIncludedInServiceDocument(); @Override List<NavigationPropertyBinding> getNavigationPropertyBindings(); @Override String toString();  }
@Test public void testEntitySetImpl() { EntitySetImpl.Builder builder = new EntitySetImpl.Builder(); builder.setName("name"); builder.setTypeName("typeName"); builder.setIsIncludedInServiceDocument(true); NavigationPropertyBindingImpl propertyBinding = new NavigationPropertyBindingImpl("navPath", "navTarget"); builder.addNavigationPropertyBinding(propertyBinding); EntitySetImpl entitySet = builder.build(); assertThat(entitySet.getName(), is("name")); assertThat(entitySet.getTypeName(), is("typeName")); assertThat(entitySet.isIncludedInServiceDocument(), is(true)); assertThat(entitySet.getNavigationPropertyBindings(), is(notNullValue())); assertThat(entitySet.getNavigationPropertyBindings().size(), is(1)); assertThat(entitySet.toString(), is("name")); }