### Question:
Jive6ContributorProfileProvider implements ContributorProfileProvider { protected Map<String, Object> convertJSONMap(byte[] data) { ObjectMapper mapper = new ObjectMapper(); try { int startOffset = 0; for (byte b : data) { if (FIRST_RESPONSE_BYTE == b) { break; } startOffset++; } return mapper.readValue(data, startOffset, data.length, new TypeReference<Map<String, Object>>() { }); } catch (IOException e) { String msg = "Cannot parse Jive 6 profile json data: " + e.getMessage(); log.log(Level.WARNING, msg); throw new RuntimeException(msg); } }  @PostConstruct void init(); @Override List<ContributorProfile> getAllProfiles(Integer start, Integer size); @Override ContributorProfile getProfile(String jbossorgUsername); @PreDestroy void destroy(); static final String JIVE_PROFILE_REST_API; static final String JIVE_ALL_PROFILES_REST_API; }### Answer:
@SuppressWarnings("deprecation") @Test(expected = RuntimeException.class) public void convertJSONMap_jiveDataError1() throws Exception { Jive6ContributorProfileProvider provider = getTested(); provider.convertJSONMap(IOUtils.toByteArray("")); }