### Question:
TX64Packet extends XBeeAPIPacket { @Override public boolean isBroadcast() { return get64bitDestinationAddress().equals(XBee64BitAddress.BROADCAST_ADDRESS); } TX64Packet(int frameID, XBee64BitAddress destAddress64, int transmitOptions, byte[] rfData); static TX64Packet createPacket(byte[] payload); @Override boolean needsAPIFrameID(); @Override boolean isBroadcast(); XBee64BitAddress get64bitDestinationAddress(); int getTransmitOptions(); void setRFData(byte[] rfData); byte[] getRFData(); @Override LinkedHashMap<String, String> getAPIPacketParameters();  }### Answer:
@Test public final void testIsBroadcastWithNonBroadcastDestinationAddress() { int frameID = 0x65; XBee64BitAddress dest64Addr = new XBee64BitAddress("0013A2004032D9AB"); int options = 40; byte[] data = new byte[]{0x68, 0x6F, 0x6C, 0x61}; TX64Packet packet = new TX64Packet(frameID, dest64Addr, options, data); assertThat("Packet should not be broadcast", packet.isBroadcast(), is(equalTo(false))); }
@Test public final void testIsBroadcastWithBroadcastDestinationAddress() { int frameID = 0x65; XBee64BitAddress dest64Addr = new XBee64BitAddress("FFFF"); int options = 40; byte[] data = new byte[]{0x68, 0x6F, 0x6C, 0x61}; TX64Packet packet = new TX64Packet(frameID, dest64Addr, options, data); assertThat("Packet should be broadcast", packet.isBroadcast(), is(equalTo(true))); }