added configuration base class for JavaConfig. added test case(s)