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