### Question:
ResourceFactory { static String toPrintableName(IResource resource) { return "AUDIT WHITELIST ON " + resource.getName(); } private  ResourceFactory();   }### Answer:
@Test public void testResourceToString() { String expectedString = "AUDIT WHITELIST ON data/ks"; assertThat(ResourceFactory.toPrintableName(DataResource.fromName("data/ks"))).isEqualTo(expectedString); }