@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); }
@Override protected Object createValue(String value) throws Exception { return value; }
StringProducer extends BaseTypeProducer { @Override protected Object createValue(String value) throws Exception { return value; } }
StringProducer extends BaseTypeProducer { @Override protected Object createValue(String value) throws Exception { return value; }  }
StringProducer extends BaseTypeProducer { @Override protected Object createValue(String value) throws Exception { return value; }   }
StringProducer extends BaseTypeProducer { @Override protected Object createValue(String value) throws Exception { return value; }    }