### Question:
Host { public int getPort() { return port; } Host();  Host(final String hostid, final String address, final int port,
              final byte[] hostkey, final boolean ssl, final boolean client,
              final boolean proxified, final boolean admin,
              final boolean active, final UpdatedInfo updatedInfo);  Host(final String hostid, final String address, final int port,
              final byte[] hostkey, final boolean ssl, final boolean client,
              final boolean proxified, final boolean admin,
              final boolean active);  Host(final String hostid, final String address, final int port,
              final byte[] hostkey, final boolean ssl, final boolean client,
              final boolean proxified, final boolean admin);  Host(final String hostid, final String address, final int port,
              final byte[] hostkey, final boolean ssl, final boolean client); String getHostid(); void setHostid(final String hostid); String getAddress(); void setAddress(final String address); int getPort(); void setPort(final int port); byte[] getHostkey(); @XmlElement(name = XML_AUTHENTIFICATION_KEY) @JsonIgnore String getKey(); void setKey(final String key); void setHostkey(final byte[] hostkey); boolean isSSL(); void setSSL(final boolean ssl); boolean isClient(); void setClient(final boolean client); boolean isAdmin(); void setAdmin(final boolean admin); boolean isProxified(); void setProxified(final boolean proxified); boolean isActive(); void setActive(final boolean active); UpdatedInfo getUpdatedInfo(); void setUpdatedInfo(final UpdatedInfo info);  }### Answer:
@Test public void testNegativePort() { byte[] rawbytes = { 0xA, 0x2 }; Host host = new Host("hostid", "127.0.0.1", -42, rawbytes, false, true, true, true, true, UpdatedInfo.UNKNOWN); assertEquals(-42, host.getPort()); }