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

	IComponent boltOrSpout;
	if (this.r.nextBoolean()) {
		boltOrSpout = mock(IRichSpout.class);
	} else {
		boltOrSpout = mock(IRichBolt.class);
	}
	final SetupOutputFieldsDeclarer declarer = new SetupOutputFieldsDeclarer();
	final String[] schema = new String[26];
	for (int i = 0; i < schema.length; ++i) {
		schema[i] = "a" + i;
	}
	declarer.declare(new Fields(schema));
	PowerMockito.whenNew(SetupOutputFieldsDeclarer.class).withNoArguments().thenReturn(declarer);
	WrapperSetupHelper.getNumberOfAttributes(boltOrSpout, null);
}