AcceptToken implements QualityValue { public boolean isCompatible(AcceptToken other) { return isCompatible(other.getToken()); } AcceptToken(String token);  AcceptToken(String token, float qValue); static AcceptToken valueOf(String value); Token getToken(); @Override float getQvalue(); boolean isCompatible(AcceptToken other); boolean isCompatible(Token other); boolean isCompatible(String other); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@UseDataProvider("forTestIsCompatible") @Test public void testIsCompatible(AcceptToken acceptToken, AcceptToken checkAcceptToken, boolean expectedResult) throws Exception { assertEquals(expectedResult, acceptToken.isCompatible(checkAcceptToken)); }