### Question:
Address implements Serializable { public static DeviceDriverAddress hubDriverAddress(String hubId, UUID deviceId) { return new DeviceDriverAddress(intern(hubId), deviceId); }  static Address get(Address address); static BroadcastAddress broadcastAddress(); static BridgeAddress bridgeAddress(String bridgeId); static ClientAddress clientAddress(String serverId, String sessionId); static DeviceDriverAddress deviceAddress(String group, UUID deviceId); static DeviceDriverAddress platformDriverAddress(UUID deviceId); static DeviceDriverAddress hubDriverAddress(String hubId, UUID deviceId); static HubAddress hubAddress(String hubId); static DeviceProtocolAddress protocolAddress(String protocolName, String group, ProtocolDeviceId protocolDeviceId); static DeviceProtocolAddress protocolAddress(String protocolName, ProtocolDeviceId protocolDeviceId); static DeviceProtocolAddress protocolAddress(String protocolName, byte [] protocolDeviceId); static DeviceProtocolAddress protocolAddress(String protocolName, String protocolDeviceId); static DeviceProtocolAddress hubProtocolAddress(String hubId, String protocolName, ProtocolDeviceId protocolDeviceId); static PlatformServiceAddress platformService(String serviceName); static PlatformServiceAddress platformService(Object contextId, String serviceName); static PlatformServiceAddress platformService(Object contextId, String serviceName, Integer contextQualifier); static HubServiceAddress hubService(String hubId, String serviceName); static Address fromString(String address); static Address fromBytes(byte[] address); static Address fromBytes(byte[] address, int offset); abstract boolean isBroadcast(); abstract boolean isHubAddress(); String getHubId(); abstract String getNamespace(); abstract Object getGroup(); abstract Object getId(); abstract String getRepresentation(); abstract byte[] getBytes(); @Override String toString(); static boolean isHubId(String value); static final int ADDRESS_LENGTH; static final int NAMESPACE_LENGTH; static final int GROUP_LENGTH; static final int ID_LENGTH; static final int CONTEXT_QUALIFIER_LENGTH; static final UUID ZERO_UUID; static final String PLATFORM_DRIVER_GROUP; }### Answer:
@Test public void testHubDriverAddress() { String address = MessageConstants.DRIVER + ":" + hubId + ":" + deviceId; DeviceDriverAddress actual = (DeviceDriverAddress) Address.fromString(address); assertFalse(actual.isBroadcast()); assertEquals(address, actual.getRepresentation()); assertEquals(MessageConstants.DRIVER, actual.getNamespace()); assertEquals(hubId, actual.getGroup()); assertEquals(deviceId, actual.getId()); assertEquals(true, actual.isHubAddress()); assertEquals(hubId, actual.getHubId()); assertEquals(actual, Address.hubDriverAddress(hubId, deviceId)); assertEquals(actual, Address.fromBytes(actual.getBytes())); }