public static void checkIntegerMultiple(
      long value1,
      String value1Name,
      long value2,
      String value2Name) {
    checkArgument(
        (value1 % value2) == 0,
        "'%s' (%s) must be an integer multiple of '%s' (%s).",
        value1Name,
        value1,
        value2Name,
        value2);
  }
@Test
  public void testCheckIntegerMultiple() throws Exception {
    // Should not throw.
    Validate.checkIntegerMultiple(10, "arg1", 5, "arg2");

    // Verify it throws.

    intercept(IllegalArgumentException.class,
        "'arg1' (10) must be an integer multiple of 'arg2' (3)",
        () -> Validate.checkIntegerMultiple(10, "arg1", 3, "arg2"));

  }