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