### Question:
CompoundIndexDefinition extends IndexDefinition implements CompoundKeyDefinition { @Override public String supportingPropertyName() { return supportingPropertyName; } CompoundIndexDefinition(final String property, final String supportingPropertyName); @Override String supportingPropertyName(); @Override Class<?> supportingPropertyType(); void setSupportingPropertyType(final Class<?> supportingPropertyType); @Override int hashCode(); @Override boolean equals(final Object obj);  }### Answer:
@Test public void shouldCreateCompoundIndexDefinition_withPropertyAndSupportingProperty() throws Exception { final String property = randomString(10); final String supportingProperty = randomString(10); final CompoundIndexDefinition compoundIndexDefinition = new CompoundIndexDefinition(property, supportingProperty); assertSame(property, compoundIndexDefinition.propertyName()); assertSame(supportingProperty, compoundIndexDefinition.supportingPropertyName()); }