### Question:
ReplicaCatalog implements TunnelMetastoreCatalog { public void setHiveMetastoreUris(String hiveMetastoreUris) { this.hiveMetastoreUris = hiveMetastoreUris; }  @Override String getName(); void setName(String name); @Override String getHiveMetastoreUris(); void setHiveMetastoreUris(String hiveMetastoreUris); @Override MetastoreTunnel getMetastoreTunnel(); void setMetastoreTunnel(MetastoreTunnel metastoreTunnel); @Override List<String> getSiteXml(); void setSiteXml(List<String> siteXml); @Override Map<String, String> getConfigurationProperties(); void setConfigurationProperties(Map<String, String> configurationProperties);  }### Answer:
@Test public void nullHiveMetastoreUris() { replicaCatalog.setHiveMetastoreUris(null); Set<ConstraintViolation<ReplicaCatalog>> violations = validator.validate(replicaCatalog); assertThat(violations.size(), is(1)); }
@Test public void emptyHiveMetastoreUris() { replicaCatalog.setHiveMetastoreUris(""); Set<ConstraintViolation<ReplicaCatalog>> violations = validator.validate(replicaCatalog); assertThat(violations.size(), is(1)); }
@Test public void blankHiveMetastoreUris() { replicaCatalog.setHiveMetastoreUris(" "); Set<ConstraintViolation<ReplicaCatalog>> violations = validator.validate(replicaCatalog); assertThat(violations.size(), is(1)); }