@Test
public void givenValuesOfCommonTypesWhenTestingPropertyDescriptorEqualityExpectEquals()
{
Some some = buildSomeValue( module );
ValueDescriptor someDescriptor = qi4j.api().valueDescriptorFor( some );
PropertyDescriptor someCharPropDesc = someDescriptor.state().findPropertyModelByName( "characterProperty" );
PrimitivesValue primitive = buildPrimitivesValue( module );
ValueDescriptor primitiveDescriptor = qi4j.api().valueDescriptorFor( primitive );
PropertyDescriptor primitiveCharPropDesc = primitiveDescriptor.state().findPropertyModelByName( "characterProperty" );
assertThat( "PropertyDescriptors equal",
someCharPropDesc,
equalTo( primitiveCharPropDesc ) );
assertThat( "PropertyDescriptors hashcode equal",
someCharPropDesc.hashCode(),
equalTo( primitiveCharPropDesc.hashCode() ) );
}