### Question:
JVM8Tools { public static Class<?> getNestHost(Class<?> klass) { if (getNestHostMethod == null) { return jdk8_getNestHost(klass); } else { try { return (Class) getNestHostMethod.invoke(klass); } catch (IllegalAccessException | InvocationTargetException e) { return klass; } } }  static String space(int n); static String string(char c ,int n); static Class<?> getNestHost(Class<?> klass); static Map<K,V> asMap(Object ... objects); static String getPackageName(Class<?> klass); static String stripLeading(final String s); static String stripTrailing(final String s); static byte[] readAllBytes(final InputStream is); static byte[] readNBytes(final InputStream is, final int len);  }### Answer:
@Test @DisplayName("Test that the simulated getNestHost works") void testGetNestHost(){ Assertions.assertEquals(Map.class,JVM8Tools.getNestHost(Map.Entry.class)); Assertions.assertEquals(Map.class,JVM8Tools.jdk8_getNestHost(Map.Entry.class)); Assertions.assertEquals(Map.class,JVM8Tools.getNestHost(Map.class)); Assertions.assertEquals(Map.class,JVM8Tools.jdk8_getNestHost(Map.class)); }