FSRecord (final int recordId) { final ThreadLocalRandom rnd = ThreadLocalRandom.current(); return new FSRecord( recordId, rnd.nextInt(0, recordId), rnd.nextInt(1, Integer.MAX_VALUE),//nameId should be >0 rnd.nextInt(), rnd.nextInt(0, Integer.MAX_VALUE),//attributeRecordId should be >=0 rnd.nextInt(0, Integer.MAX_VALUE), //rnd.nextBoolean() ? System.currentTimeMillis() : Long.MAX_VALUE, System.currentTimeMillis(), -1, Long.MAX_VALUE //rnd.nextBoolean() ? rnd.nextLong(0, Long.MAX_VALUE) : Long.MAX_VALUE //check extreme long values ); }