### Question:
AttributeBinder implements TypeBinder { @Override public void bind(XQPreparedExpression expression, XQConnection connection, QName name, String value, String type) throws Exception { expression.bindNode(name, createAttributeNode(value), getType(connection)); }  @Override void bind(XQPreparedExpression expression, XQConnection connection, QName name, String value,
                                 String type); XQItemType getType(XQConnection connection);  }### Answer:
@Test public void shouldCreateAttributeType() throws Exception { binder.bind(expression, connection, qName, VALUE, TYPE); verify(connection).createAttributeType(null, XQItemType.XQBASETYPE_ANYSIMPLETYPE); }
@Test public void shouldBindNode() throws Exception { binder.bind(expression, connection, qName, VALUE, TYPE); verify(expression).bindNode(eq(qName), isA(Node.class), eq(xqItemType)); }