@Test
public void testAddMetadata_5args_1() throws SQLException
{

    String schema = "dc";
    String element = "contributor";
    String qualifier = "author";
    String lang = Item.ANY;
    String[] values = {"value0","value1"};
    itemService.addMetadata(context, it, schema, element, qualifier, lang, Arrays.asList(values));
    List<MetadataValue> dc = itemService.getMetadata(it, schema, element, qualifier, lang);
    assertThat("testAddMetadata_5args_1 0",dc,notNullValue());
    assertTrue("testAddMetadata_5args_1 1",dc.size() == 2);
    assertThat("testAddMetadata_5args_1 2",dc.get(0).getMetadataField().getMetadataSchema().getName(),equalTo(schema));
    assertThat("testAddMetadata_5args_1 3",dc.get(0).getMetadataField().getElement(),equalTo(element));
    assertThat("testAddMetadata_5args_1 4",dc.get(0).getMetadataField().getQualifier(),equalTo(qualifier));
    assertThat("testAddMetadata_5args_1 5",dc.get(0).getLanguage(),equalTo(lang));
    assertThat("testAddMetadata_5args_1 6",dc.get(0).getValue(),equalTo(values[0]));
    assertThat("testAddMetadata_5args_1 7",dc.get(1).getMetadataField().getMetadataSchema().getName(),equalTo(schema));
    assertThat("testAddMetadata_5args_1 8",dc.get(1).getMetadataField().getElement(),equalTo(element));
    assertThat("testAddMetadata_5args_1 9",dc.get(1).getMetadataField().getQualifier(),equalTo(qualifier));
    assertThat("testAddMetadata_5args_1 10",dc.get(1).getLanguage(),equalTo(lang));
    assertThat("testAddMetadata_5args_1 11",dc.get(1).getValue(),equalTo(values[1]));
}