BasicTag implements Tag { public static BasicTag parseTag(String tagString) { return (BasicTag) Tags.parseTag(tagString); } BasicTag(String key, String value); String getKey(); String getValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static BasicTag parseTag(String tagString); @Override String tagString();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testParseTagNoEqSign() throws Exception { String badString = "foobar"; Tags.parseTag(badString); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testParseTagEmptyValue() throws Exception { String badString = "foo="; Tags.parseTag(badString); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testParseTagEmptyKey() throws Exception { String badString = "=bar"; Tags.parseTag(badString); }