### Question:
ShareLibExcluder { boolean shouldExclude(final URI actionLibURI) { Objects.requireNonNull(actionLibURI, () -> String.format(VALUE_NULL_MSG, "actionLibURI")); if (configuredExcludePattern != null && shareLibRoot != null) { if (configuredExcludePattern.matcher(shareLibRoot.relativize(actionLibURI).getPath()).matches()) { LOG.info("Mark file for excluding from distributed cache: {0}", actionLibURI.getPath()); return true; } } LOG.debug("Mark file for adding to distributed cache: {0}", actionLibURI.getPath()); return false; } ShareLibExcluder(final Configuration actionConf, final Configuration servicesConf, final Configuration jobConf,
                     final String executorType, final URI shareLibRoot);   }### Answer:
@Test public void testWithNullLibPathArgShouldThrowException() { servicesConf.set(excludeProperty, ALL_JACKSON_PATTERN); shareLibExcluder = new ShareLibExcluder(actionConf, servicesConf, jobConf, executorType, sharelibRootURI); thrown.expect(NullPointerException.class); thrown.expectMessage(String.format(VALUE_NULL_MSG, "actionLibURI")); shareLibExcluder.shouldExclude(null); }