@Test
public void createsInstanceAndUsesFirstValueFromMap() throws Exception {

    MultivaluedMap<String, String> values = new MultivaluedMapImpl();
    values.addAll("foo", "bar", "baz");
    Object result = producer.createValue("foo", values, null);
    assertEquals("bar", result);
}