### Question:
SourceCatalog implements TunnelMetastoreCatalog { public void setName(String name) { this.name = name; }  @Override String getName(); void setName(String name); boolean isDisableSnapshots(); void setDisableSnapshots(boolean disableSnapshots); @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); @Override String getHiveMetastoreUris(); void setHiveMetastoreUris(String hiveMetastoreUris);  }### Answer:
@Test public void nullName() { sourceCatalog.setName(null); Set<ConstraintViolation<SourceCatalog>> violations = validator.validate(sourceCatalog); assertThat(violations.size(), is(1)); }
@Test public void emptyName() { sourceCatalog.setName(""); Set<ConstraintViolation<SourceCatalog>> violations = validator.validate(sourceCatalog); assertThat(violations.size(), is(1)); }
@Test public void blankName() { sourceCatalog.setName(" "); Set<ConstraintViolation<SourceCatalog>> violations = validator.validate(sourceCatalog); assertThat(violations.size(), is(1)); }