### Question:
AtomicValueBinder implements TypeBinder { @Override public void bind(XQPreparedExpression expression, XQConnection connection, QName name, String value, String type) throws Exception { expression.bindAtomicValue(name, value, getType(connection, type)); }  @Override void bind(XQPreparedExpression expression, XQConnection connection, QName name, String value,
                                 String type);  }### Answer:
@Test public void shouldCreateAtomicTypeUsingConnection() throws Exception { binder.bind(expression, connection, qName, VALUE, TYPE); verify(connection).createAtomicType(anyInt()); }
@Test public void shouldBindAtomicValue() throws Exception { binder.bind(expression, connection, qName, VALUE, TYPE); verify(expression).bindAtomicValue(qName, VALUE, xqItemType); }