public static long getNextMinute() {
    return Calendar.getInstance().getTimeInMillis() + 1000 * 60;
  }
@Test
  public void getNextMinute() {
    var nextMinute = DateUtils.getNextMinute();

    assertTrue(Calendar.getInstance().getTimeInMillis() < nextMinute);
    assertTrue(nextMinute < Calendar.getInstance().getTimeInMillis() + 61 * 1000);
  }