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