Add quantum to Java API test, too.