@Test(expected = IllegalArgumentException.class)
public void testRawType() throws Exception {

	IComponent boltOrSpout;
	if (this.r.nextBoolean()) {
		boltOrSpout = mock(IRichSpout.class);
	} else {
		boltOrSpout = mock(IRichBolt.class);
	}
	final SetupOutputFieldsDeclarer declarer = new SetupOutputFieldsDeclarer();
	declarer.declare(new Fields("dummy1", "dummy2"));
	PowerMockito.whenNew(SetupOutputFieldsDeclarer.class).withNoArguments().thenReturn(declarer);
	WrapperSetupHelper.getNumberOfAttributes(boltOrSpout,
			Sets.newHashSet(new String[] { Utils.DEFAULT_STREAM_ID }));
}