Tenant implements ITenant { public Tenant() { } Tenant();  Tenant( String tenantId, Boolean enabled ); String getRootFolderAbsolutePath(); void setRootFolderAbsolutePath( String rootFolderAbsolutePath ); @Override String getId(); @Override String getName(); @Override boolean equals( Object obj ); @Override int hashCode(); String toString(); boolean isEnabled(); void setEnabled( boolean enabled );  }
@Test public void tenantTest() { Tenant t = new Tenant(); assertNull( t.getRootFolderAbsolutePath() ); assertNull( t.getId() ); assertNull( t.getName() ); assertTrue( t.isEnabled() ); assertEquals( t.toString(), "TENANT ID = null" ); t.setRootFolderAbsolutePath( "C:/TestPath" ); assertEquals( t.getRootFolderAbsolutePath(), "C:/TestPath" ); assertEquals( t.getId(), "C:/TestPath" ); assertEquals( t.getName(), "TestPath" ); t.setEnabled( false ); assertFalse( t.isEnabled() ); assertEquals( t.toString(), "TENANT ID = C:/TestPath" ); assertEquals( t.hashCode(), 31 * "C:/TestPath".hashCode() ); }