### Question:
SchemaDescriptorFactory { public static RelationTypeSchemaDescriptor forRelType( int relTypeId, int... propertyIds ) { validateRelationshipTypeIds( relTypeId ); validatePropertyIds( propertyIds ); return new RelationTypeSchemaDescriptor( relTypeId, propertyIds ); } private  SchemaDescriptorFactory(); static LabelSchemaDescriptor forLabel( int labelId, int... propertyIds ); static RelationTypeSchemaDescriptor forRelType( int relTypeId, int... propertyIds ); static MultiTokenSchemaDescriptor multiToken( int[] entityTokens, EntityType entityType, int... propertyIds ); static MultiTokenSchemaDescriptor multiToken( int[] entityTokens, EntityType entityType, int[] propertyIds, int[] sortIds, int[] sortTypes ); static MultiTokenSchemaDescriptor multiTokenSort( int[] entityTokens, EntityType entityType, int[] propertyIds, int[] sortIds,
                                                             int[] sortTypes );  }### Answer:
@Test public void shouldCreateRelTypeDescriptors() { RelationTypeSchemaDescriptor relTypeDesc; relTypeDesc = SchemaDescriptorFactory.forRelType( REL_TYPE_ID, 1 ); assertThat( relTypeDesc.getRelTypeId(), equalTo( REL_TYPE_ID ) ); assertArray( relTypeDesc.getPropertyIds(), 1 ); relTypeDesc = SchemaDescriptorFactory.forRelType( REL_TYPE_ID, 1, 2, 3 ); assertThat( relTypeDesc.getRelTypeId(), equalTo( REL_TYPE_ID ) ); SchemaTestUtil.assertArray( relTypeDesc.getPropertyIds(), 1, 2, 3 ); relTypeDesc = SchemaDescriptorFactory.forRelType( REL_TYPE_ID ); assertThat( relTypeDesc.getRelTypeId(), equalTo( REL_TYPE_ID ) ); SchemaTestUtil.assertArray( relTypeDesc.getPropertyIds() ); }
@Test public void shouldCreateEqualRelTypes() { RelationTypeSchemaDescriptor desc1 = SchemaDescriptorFactory.forRelType( REL_TYPE_ID, 1 ); RelationTypeSchemaDescriptor desc2 = SchemaDescriptorFactory.forRelType( REL_TYPE_ID, 1 ); SchemaTestUtil.assertEquality( desc1, desc2 ); }