@Test public void parseShouldThrowOnNullInput() throws Exception { assertThatThrownBy(() -> jsonExtractor.parse(null)).isInstanceOf(NullPointerException.class); }
public RequestT parse(String text) throws JsonExtractException { try { return objectMapper.readValue(text, type); } catch (IOException | IllegalArgumentException e) { throw new JsonExtractException(e); } }
JsonExtractor { public RequestT parse(String text) throws JsonExtractException { try { return objectMapper.readValue(text, type); } catch (IOException | IllegalArgumentException e) { throw new JsonExtractException(e); } } }
JsonExtractor { public RequestT parse(String text) throws JsonExtractException { try { return objectMapper.readValue(text, type); } catch (IOException | IllegalArgumentException e) { throw new JsonExtractException(e); } } JsonExtractor(Class<RequestT> type, Module... modules);  JsonExtractor(Class<RequestT> type, List<Module> modules); }
JsonExtractor { public RequestT parse(String text) throws JsonExtractException { try { return objectMapper.readValue(text, type); } catch (IOException | IllegalArgumentException e) { throw new JsonExtractException(e); } } JsonExtractor(Class<RequestT> type, Module... modules);  JsonExtractor(Class<RequestT> type, List<Module> modules); RequestT parse(String text); }
JsonExtractor { public RequestT parse(String text) throws JsonExtractException { try { return objectMapper.readValue(text, type); } catch (IOException | IllegalArgumentException e) { throw new JsonExtractException(e); } } JsonExtractor(Class<RequestT> type, Module... modules);  JsonExtractor(Class<RequestT> type, List<Module> modules); RequestT parse(String text);  }