### Question:
ResourceUtils { public static boolean matchTag(String eTag, String eTagHeaderValue) { if ((eTag == null) || (eTagHeaderValue == null)) { throw new IllegalArgumentException("tag and tagHeaderValue must be not null"); } Matcher eTagMatcher = ETAG_PATTERN.matcher(eTag); if (!eTagMatcher.find()) { throw new IllegalArgumentException(); } String tag = eTagMatcher.group(1); Matcher eTagHeaderMatcher = ETAG_PATTERN.matcher(eTagHeaderValue); while (eTagHeaderMatcher.find()) { if (tag.equals(eTagHeaderMatcher.group(1))) { return true; } } return false; } private  ResourceUtils(); static String formatWeakTag(String eTag); static String formatTag(String eTag); static boolean matchTag(String eTag, String eTagHeaderValue); static long millisToSecond(long millisecond); static long secondToMillis(long second);  }### Answer:
@Test public void testMatchTag() throws Exception { assertTrue(ResourceUtils.matchTag("\"123-4567890\"", "W/\"123-4567890\"")); assertTrue(ResourceUtils.matchTag("\"123-4567890\"", "W/\"123-4567890\", \"123-4567891\"")); assertTrue(ResourceUtils.matchTag("W/\"123-4567891\"", "W/\"123-4567890\", \"123-4567891\"")); assertFalse(ResourceUtils.matchTag("\"123-4567890\"", "W/\"023-4567890\"")); assertFalse(ResourceUtils.matchTag("\"123-4567890\"", "W/\"023-4567890\", \"023-4567891\"")); assertFalse(ResourceUtils.matchTag("W/\"123-4567891\"", "W/\"023-4567890\", \"023-4567891\"")); try { ResourceUtils.matchTag(null, "W/\"123-4567890\", \"123-4567891\""); fail(); } catch (IllegalArgumentException e) { } try { ResourceUtils.matchTag("W/\"123-4567890\"", null); fail(); } catch (IllegalArgumentException e) { } try { ResourceUtils.matchTag("123\"456789", "W/\"123\""); fail(); } catch (IllegalArgumentException e) { } }