@Test
public void messageShouldBePassedWhenBuildPasses() throws CruiseControlException {

    TestTwitterProxy proxy = new TestTwitterProxy();
    TwitterPublisher twitter = new TwitterPublisher(proxy);
    Element passed = TestUtil.createPassingBuild();
    twitter.publish(passed);
    assertEquals("someproject successful", proxy.status);
}