### Question:
ImmutableQueryParameter implements Parameter { @Override public <T> T rawValueAs(Class<? extends T> clazz) { return ObjectUtil.fromString(clazz, rawValue()); } private  ImmutableQueryParameter(String name, ImmutableList<String> rawValues); @Override String name(); @Override boolean isMultivalued(); @Override int cardinality(); @Override String rawValue(); @Override List<String> rawValues(); @Override T rawValueAs(Class<? extends T> clazz); @Override List<T> rawValuesAs(Class<? extends T> clazz); @Override String toString();  }### Answer:
@Test public void transformFirstRawValue$singleValued() { ImmutableQueryParameter parameter = singleValuedParameter(); Float value = parameter.rawValueAs(Float.class); assertThat(value,equalTo(3.3f)); }
@Test public void transformFirstRawValue$multiValued() { ImmutableQueryParameter parameter = multiValuedParameter(); int value = parameter.rawValueAs(Integer.class); assertThat(value,equalTo(1)); }