add java version of ssleay_test