### Question:
ZipInputAdapter { public abstract String getName(); ZipInputAdapter(int method); void closeInputStream(); abstract InputStream getInputStream(); abstract String getLocation(); int getMethod(); abstract String getName(); long getSize();  }### Answer:
@Test public void testNonPrivateMethods() { Method[] declaredMethods = ZipInputAdapter.class.getDeclaredMethods(); for (Method method : declaredMethods) { if (!method.getName().startsWith("$") && !method.getName().startsWith("lambda$")) { assertFalse(method.getName() + " is private. No private methods are permitted.", Modifier.isPrivate(method.getModifiers())); } } }