@Test
public void Should_createItemsForAnnotatedMethods()
        throws Exception {

    IPlugin plugin = new BootstrapPlugin(bootstrapMock) {
        @BootstrapPlugin.Item("item1")
        public void item1Method() {
        }
        @BootstrapPlugin.Item("item2")
        public void item2Method() {
        }
        public void notItemMethod() {}
    };
    plugin.load();
    verify(bootstrapMock, times(2)).add(itemArgumentCaptor.capture());
    for (IBootstrapItem item : itemArgumentCaptor.getAllValues()) {
        assertTrue(item instanceof MethodBootstrapItem);
    }
}