public static <T extends JsonTemplate> T readJson(InputStream jsonStream, Class<T> templateClass)
      throws IOException {
    return objectMapper.readValue(jsonStream, templateClass);
  }
@Test
  public void testReadJson_inputStream() throws IOException {
    String testJson = "{\"number\":3, \"text\":\"cool\"}";
    ByteArrayInputStream in = new ByteArrayInputStream(testJson.getBytes(StandardCharsets.UTF_8));
    TestJson json = JsonTemplateMapper.readJson(in, TestJson.class);
    Assert.assertEquals(3, json.number);
    Assert.assertEquals("cool", json.text);
  }