### Question:
ConstraintDescriptorFactory { public static UniquenessConstraintDescriptor uniqueForLabel( int labelId, int... propertyIds ) { return new UniquenessConstraintDescriptor( SchemaDescriptorFactory.forLabel( labelId, propertyIds ) ); } private  ConstraintDescriptorFactory(); static NodeExistenceConstraintDescriptor existsForLabel( int labelId, int... propertyIds ); static RelExistenceConstraintDescriptor existsForRelType( int relTypeId, int... propertyIds ); static UniquenessConstraintDescriptor uniqueForLabel( int labelId, int... propertyIds ); static NodeKeyConstraintDescriptor nodeKeyForLabel( int labelId, int... propertyIds ); static ConstraintDescriptor existsForSchema( SchemaDescriptor schema ); static NodeExistenceConstraintDescriptor existsForSchema( LabelSchemaDescriptor schema ); static RelExistenceConstraintDescriptor existsForSchema( RelationTypeSchemaDescriptor schema ); static UniquenessConstraintDescriptor uniqueForSchema( SchemaDescriptor schema ); static NodeKeyConstraintDescriptor nodeKeyForSchema( SchemaDescriptor schema );  }### Answer:
@Test public void shouldCreateUniqueConstraintDescriptors() { ConstraintDescriptor desc; desc = ConstraintDescriptorFactory.uniqueForLabel( LABEL_ID, 1 ); assertThat( desc.type(), equalTo( ConstraintDescriptor.Type.UNIQUE ) ); assertThat( desc.schema(), equalTo( SchemaDescriptorFactory.forLabel( LABEL_ID, 1 ) ) ); }