### Question:
ClientHintsTransform { public ClientHints clientHintsFromIrodsJson(final String irodsJson) throws InvalidDataException { if (irodsJson == null || irodsJson.isEmpty()) { throw new IllegalArgumentException("null or empty irodsJson"); } ObjectMapper objectMapper = new ObjectMapper(); try { ClientHints clientHints = objectMapper.readValue(irodsJson, ClientHints.class); return clientHints; } catch (IOException e) { throw new InvalidDataException("exception translating client hints JSON to ClientHints", e); } }  ClientHints clientHintsFromIrodsJson(final String irodsJson);  }### Answer:
@Test public void testClientHintsFromIrodsJson() throws Exception { String jsonHints = LocalFileUtils.getClasspathResourceFileAsString("/sample-json/client-hints1.json"); ClientHintsTransform clientHintsTransform = new ClientHintsTransform(); ClientHints actual = clientHintsTransform.clientHintsFromIrodsJson(jsonHints); Assert.assertNotNull("no client hints returned", actual); Assert.assertEquals("on", actual.getStrictAcls()); Assert.assertEquals("SHA256", actual.getHashScheme()); Assert.assertFalse("no specific queries loaded", actual.getSpecificQueries().isEmpty()); Assert.assertFalse("no rules loaded", actual.getRules().isEmpty()); }
@Test public void testClientHintsDetermineIcatDatabase() throws Exception { String jsonHints = LocalFileUtils.getClasspathResourceFileAsString("/sample-json/client-hints1.json"); ClientHintsTransform clientHintsTransform = new ClientHintsTransform(); ClientHints actual = clientHintsTransform.clientHintsFromIrodsJson(jsonHints); Assert.assertEquals(IcatTypeEnum.POSTGRES, actual.whatTypeOfIcatIsIt()); }