@Test public void testSerialize() { ZigBeeTransportTransmit mockedTransport = Mockito.mock(ZigBeeTransportTransmit.class); ZigBeeNetworkManager networkManager = new ZigBeeNetworkManager(mockedTransport); ZigBeeNode node = new ZigBeeNode(networkManager, new IeeeAddress("1234567890ABCDEF")); node.setNetworkAddress(12345); ZigBeeEndpoint endpoint; endpoint = new ZigBeeEndpoint(node, 1); endpoint.setProfileId(123); node.addEndpoint(endpoint); endpoint = new ZigBeeEndpoint(node, 2); endpoint.setProfileId(321); node.addEndpoint(endpoint); }
public void setNetworkAddress(Integer networkAddress) { this.networkAddress = networkAddress; }
ZigBeeNodeDao { public void setNetworkAddress(Integer networkAddress) { this.networkAddress = networkAddress; } }
ZigBeeNodeDao { public void setNetworkAddress(Integer networkAddress) { this.networkAddress = networkAddress; }  }
ZigBeeNodeDao { public void setNetworkAddress(Integer networkAddress) { this.networkAddress = networkAddress; }  IeeeAddress getIeeeAddress(); void setIeeeAddress(IeeeAddress ieeeAddress); Integer getNetworkAddress(); void setNetworkAddress(Integer networkAddress); NodeDescriptor getNodeDescriptor(); void setNodeDescriptor(NodeDescriptor nodeDescriptor); PowerDescriptor getPowerDescriptor(); void setPowerDescriptor(PowerDescriptor powerDescriptor); void setEndpoints(List<ZigBeeEndpointDao> endpointDaoList); List<ZigBeeEndpointDao> getEndpoints(); void setBindingTable(Set<BindingTable> bindingTable); Set<BindingTable> getBindingTable(); }
ZigBeeNodeDao { public void setNetworkAddress(Integer networkAddress) { this.networkAddress = networkAddress; }  IeeeAddress getIeeeAddress(); void setIeeeAddress(IeeeAddress ieeeAddress); Integer getNetworkAddress(); void setNetworkAddress(Integer networkAddress); NodeDescriptor getNodeDescriptor(); void setNodeDescriptor(NodeDescriptor nodeDescriptor); PowerDescriptor getPowerDescriptor(); void setPowerDescriptor(PowerDescriptor powerDescriptor); void setEndpoints(List<ZigBeeEndpointDao> endpointDaoList); List<ZigBeeEndpointDao> getEndpoints(); void setBindingTable(Set<BindingTable> bindingTable); Set<BindingTable> getBindingTable();  }