@SuppressWarnings("unchecked")
@Test
public void testClose() throws Exception {

	final IRichBolt bolt = mock(IRichBolt.class);
	final SetupOutputFieldsDeclarer declarer = new SetupOutputFieldsDeclarer();
	declarer.declare(new Fields("dummy"));
	PowerMockito.whenNew(SetupOutputFieldsDeclarer.class).withNoArguments().thenReturn(declarer);
	final BoltWrapper<Object, Object> wrapper = new BoltWrapper<Object, Object>(bolt);
	wrapper.setup(createMockStreamTask(), new StreamConfig(new Configuration()), mock(Output.class));
	wrapper.close();
	wrapper.dispose();
	verify(bolt).cleanup();
}