@SuppressWarnings("unchecked")
@Test
public void getsParsedDecodedMultivaluedMapFromContextIfPresent() throws Exception {

    MultivaluedMap<String, String> decodedMap = new MultivaluedHashMap<>();
    when(context.getAttributes().get("org.everrest.provider.entity.decoded.form")).thenReturn(decodedMap);
    MultivaluedMap<String, String> multivaluedMap = multivaluedMapEntityProvider.readFrom((Class)MultivaluedMap.class, multiValuedMapGenericType,
                                                                                          null, APPLICATION_FORM_URLENCODED_TYPE,
                                                                                          new MultivaluedMapImpl(),
                                                                                          new ByteArrayInputStream(testContent));
    assertSame(decodedMap, multivaluedMap);
}