fixing java test failure on some systems

on some systems Java produces different representation for `static final double` and `double`.