### Question:
Util { public static void generateLicense(PrintWriter writer) { writer.println(""); writer.println(); } private  Util(); static boolean isOptionalModule(String name); static boolean isBlacklistedClass(String name); static List<?> jvmClasses(); static String genType(TypeInfo type); static String genType(TypeInfo type, boolean parameter); static String genGeneric(List<? extends TypeParamInfo> params); static boolean isImported(TypeInfo ref, Map<String, Object> session); static String getNPMScope(ModuleInfo module); static String includeFileIfPresent(String file); static void generateLicense(PrintWriter writer); static String cleanReserved(String value); static String getOverrideArgs(String type, String method); static String getOverrideReturn(String type, String method); static boolean isBlacklisted(String type, String method, Object params); static void generateDoc(PrintWriter writer, Doc doc, String margin); static void registerJvmClasses(); static void unregisterJvmClasses(); static CharSequence genType(String name);  }### Answer:
@Test public void generateLicenseInputNullOutputNullPointerException() { final PrintWriter writer = null; thrown.expect(NullPointerException.class); Util.generateLicense(writer); }