public static BadRequestException invalidNotificationsFormat(String format) {
    return new BadRequestException("invalid notifications format:%s", format);
  }
@Test
  public void testInvalidNotificationsFormat() {
    BadRequestException invalidNotificationsFormat = BadRequestException.invalidNotificationsFormat("format");
    assertEquals("invalid notifications format:format", invalidNotificationsFormat.getMessage());
  }