@Test
public void testAddMetadata_7args_2_noauthority() throws SQLException {

    //by default has no authority
    String schema = "dc";
    String element = "contributor";
    String qualifier = "author";
    String lang = Item.ANY;
    String values = "value0";
    String authorities = "auth0";
    int confidences = 0;
    itemService.addMetadata(context, it, schema, element, qualifier, lang, values, authorities, confidences);
    List<MetadataValue> dc = itemService.getMetadata(it, schema, element, qualifier, lang);
    assertThat("testAddMetadata_7args_2 0",dc,notNullValue());
    assertTrue("testAddMetadata_7args_2 1",dc.size() == 1);
    assertThat("testAddMetadata_7args_2 2",dc.get(0).getMetadataField().getMetadataSchema().getName(),equalTo(schema));
    assertThat("testAddMetadata_7args_2 3",dc.get(0).getMetadataField().getElement(),equalTo(element));
    assertThat("testAddMetadata_7args_2 4",dc.get(0).getMetadataField().getQualifier(),equalTo(qualifier));
    assertThat("testAddMetadata_7args_2 5",dc.get(0).getLanguage(),equalTo(lang));
    assertThat("testAddMetadata_7args_2 6",dc.get(0).getValue(),equalTo(values));
    assertThat("testAddMetadata_7args_2 7",dc.get(0).getAuthority(),nullValue());
    assertThat("testAddMetadata_7args_2 8",dc.get(0).getConfidence(),equalTo(-1));
}