@Test
public void bind_dataSource_dataSourceAttached() {

    DateField view = (DateField) inflater
            .inflate(getXml("single-datefield.xml"));
    Binder binder = new Binder();
    binder.bind(view, new ControllerWithDataSource());
    Date value = (Date) view.getValue();
    assertEquals(1337337477578L, value.getTime());
}