### Question:
IndexDefinition { public String propertyName() { return propertyName; } IndexDefinition(final String propertyName); String propertyName(); Class<?> propertyType(); void setPropertyType(final Class<?> propertyType); @Override int hashCode(); @Override boolean equals(final Object obj);  }### Answer:
@Test public void shouldCreateIndexDefition_withPropertyName() throws Exception { final String propertyName = randomString(10); final IndexDefinition indexDefinition = new IndexDefinition(propertyName); assertNotNull(indexDefinition); assertEquals(propertyName, indexDefinition.propertyName()); }