testing work in core java