public static BadRequestException userNotExists(String userName) {
    return new BadRequestException("user not exists for userName:%s", userName);
  }
@Test
  public void testUserNotExists(){
    BadRequestException userNotExists = BadRequestException.userNotExists("user");
    assertEquals("user not exists for userName:user", userNotExists.getMessage());
  }