[java] fix abstract overload implementation test