@Test
public void testOrderOfFieldsInputFieldOrderTwoExpectsInMiddle() {

  DublinCoreMetadataCollection collection = new DublinCoreMetadataCollection(Arrays
    .asList(unorderedOne, unorderedTwo, unorderedThree, third));
  assertEquals(4, collection.getFields().size());
  assertEquals("A field with an order value of 2 should be in that position in the list of fields", third, collection
          .getFields().get(2));
  collection = new DublinCoreMetadataCollection(Arrays.asList(third, unorderedOne, unorderedTwo, unorderedThree));
  assertEquals(4, collection.getFields().size());
  assertEquals("A field with an order value of 2 should be in that position in the list of fields", third, collection
          .getFields().get(2));
  collection = new DublinCoreMetadataCollection(Arrays.asList(unorderedOne, third, unorderedTwo, unorderedThree));
  assertEquals(4, collection.getFields().size());
  assertEquals("A field with an order value of 2 should be in that position in the list of fields", third, collection
          .getFields().get(2));
}