// get resource
ViewSubResourceService service = new ViewSubResourceService(type, viewInstanceEntity);
ResultSerializer serializer = service.getResultSerializer(MediaType.TEXT_PLAIN_TYPE);
Object o = serializer.serialize(result);
String expected = "{\n" +
" \"href\" : \"this is an href\",\n" +
" \"prop2\" : \"value2\",\n" +
" \"prop1\" : \"value1\",\n" +