@Test
public void testAddToTopology() {

    new Expectations() {
        {
            topology.getStormBuilder();
            result = stormBuilder;
            stormBuilder.setBolt(ID, (IRichBolt) any, anyInt);
            result = new MockUp<BoltDeclarer>() {
            }.getMockInstance();
        }
    };
    pi.addToTopology(topology, PARRALLELISM_HINT_4); // this parallelism hint is ignored
    new Verifications() {
        {
            assertEquals(pi.getProcessor(), processor);
            // TODO add methods to explore a topology and verify them
            assertEquals(pi.getParallelism(), PARRALLELISM_HINT_2);
            assertEquals(pi.getId(), ID);
        }
    };
}