### Question:
UnionIndexCapability implements IndexCapability { @Override public IndexLimitation[] limitations() { return limitationsUnion; } protected  UnionIndexCapability( Iterable<IndexCapability> capabilities ); @Override IndexOrder[] orderCapability( ValueCategory... valueCategories ); @Override IndexValueCapability valueCapability( ValueCategory... valueCategories ); @Override boolean isFulltextIndex(); @Override boolean isEventuallyConsistent(); @Override IndexLimitation[] limitations();  }### Answer:
@Test public void shouldCreateUnionOfIndexLimitations() { UnionIndexCapability union; union = unionOfIndexLimitations( IndexCapability.LIMITIATION_NONE, IndexCapability.LIMITIATION_NONE ); assertEquals( Collections.emptySet(), asSet( union.limitations() ) ); union = unionOfIndexLimitations( IndexCapability.LIMITIATION_NONE, array( IndexLimitation.SLOW_CONTAINS ) ); assertEquals( asSet( IndexLimitation.SLOW_CONTAINS ), asSet( union.limitations() ) ); union = unionOfIndexLimitations( array( IndexLimitation.SLOW_CONTAINS ), array( IndexLimitation.SLOW_CONTAINS ) ); assertEquals( asSet( IndexLimitation.SLOW_CONTAINS ), asSet( union.limitations() ) ); }