### Question:
OperationKeyMatcher implements Matcher { public String toString() { StringBuilder buffer = new StringBuilder(); buffer.append("TYPE=").append(type).append("|") .append("SERVICE=").append(getServiceName()).append("|") .append("MAJORVERSION=").append(getMajorVersion()).append("|") .append("MINORVERSION=").append(getMinorVersion()).append("|") .append("NAMESPACE=").append(getNamespace()).append("|") .append("OPERATION=").append(getOperationName()).append("|"); return buffer.toString(); }  String getServiceName(); void setServiceName(String serviceName); String getOperationName(); void setOperationName(String operationName); int getMajorVersion(); void setMajorVersion(int majorVersion); int getMinorVersion(); void setMinorVersion(int minorVersion); boolean isInverted(); void setInverted(boolean inverted); String getNamespace(); void setNamespace(String namespace); boolean isRequireNullNamespace(); void setRequireNullNamespace(boolean requireNullNamespace); OperationKey.Type getType(); void setType(String type); void setType(OperationKey.Type type); @Override boolean matches(ExecutionContext ctx, OperationKey key, Object[] args); boolean matches(OperationKey key); String toString();  }### Answer:
@Test public void toStringTest(){ OperationKeyMatcher okm = new OperationKeyMatcher(); okm.toString(); okm.setMajorVersion(2); okm.setMinorVersion(1); okm.setOperationName("op"); okm.setServiceName("testService"); okm.setNamespace("ns"); String val = okm.toString(); assertTrue(val.contains("2")); assertTrue(val.contains("1")); assertTrue(val.contains("op")); assertTrue(val.contains("testService")); assertTrue(val.contains("ns")); }