Example to learn Java based configuration