@Test
public void testUnrecognizableStreamInitPositionTypeInConfig() {

	exception.expect(IllegalArgumentException.class);
	exception.expectMessage("Invalid initial position in stream");
	Properties testConfig = new Properties();
	testConfig.setProperty(ConsumerConfigConstants.AWS_REGION, "us-east-1");
	testConfig.setProperty(ConsumerConfigConstants.AWS_CREDENTIALS_PROVIDER, "BASIC");
	testConfig.setProperty(ConsumerConfigConstants.AWS_ACCESS_KEY_ID, "accessKeyId");
	testConfig.setProperty(ConsumerConfigConstants.AWS_SECRET_ACCESS_KEY, "secretKey");
	testConfig.setProperty(ConsumerConfigConstants.STREAM_INITIAL_POSITION, "wrongInitPosition");
	KinesisConfigUtil.validateConsumerConfiguration(testConfig);
}