BlueTape { public void update() { factory.create().bind(view); } private  BlueTape(View view, Factory factory); static ViewSelector with(Factory factory); void update();  }
@Test public void update() throws Exception { given(factory.create()) .willReturn(bindingFunction); testee.update(); verify(bindingFunction).bind(view); }