@Test(groups = "slow", description = "Verify no PII data is required")
  public void testEmptyAccount() throws Exception {
    final Account emptyAccount = new Account();

    final Account account = killBillClient.createAccount(emptyAccount, createdBy, reason, comment);
    Assert.assertNotNull(account.getExternalKey());
    Assert.assertNull(account.getName());
    Assert.assertNull(account.getEmail());
  }
  private void searchAccount(final Account input, @Nullable final Account output) throws Exception {
    // Search by id
    if (output != null) {
      doSearchAccount(input.getAccountId().toString(), output);
    }

    // Search by name
    doSearchAccount(input.getName(), output);

    // Search by email
    doSearchAccount(input.getEmail(), output);

    // Search by company name
    doSearchAccount(input.getCompany(), output);

    // Search by external key.
    // Note: we will always find a match since we don't update it
    final List<Account> accountsByExternalKey =
        killBillClient.searchAccounts(input.getExternalKey());
    Assert.assertEquals(accountsByExternalKey.size(), 1);
    Assert.assertEquals(accountsByExternalKey.get(0).getAccountId(), input.getAccountId());
    Assert.assertEquals(accountsByExternalKey.get(0).getExternalKey(), input.getExternalKey());
  }