### Question:
RemoteATCommandWifiPacket extends XBeeAPIPacket { @Override public boolean isBroadcast() { return destAddress.getHostAddress().equals(IPDevice.BROADCAST_IP); } RemoteATCommandWifiPacket(int frameID, Inet4Address destAddress, int transmitOptions,
			String command, byte[] parameter);  RemoteATCommandWifiPacket(int frameID, Inet4Address destAddress, int transmitOptions,
			String command, String parameter); static RemoteATCommandWifiPacket createPacket(byte[] payload); @Override boolean needsAPIFrameID(); @Override boolean isBroadcast(); Inet4Address getDestinationAddress(); int getTransmitOptions(); String getCommand(); void setParameter(String parameter); void setParameter(byte[] parameter); byte[] getParameter(); String getParameterAsString(); @Override LinkedHashMap<String, String> getAPIPacketParameters();  }### Answer:
@Test public final void testIsBroadcastFalse() { RemoteATCommandWifiPacket packet = new RemoteATCommandWifiPacket(frameID, destAddress, transmitOptions, command, parameter); assertThat("Packet should not be broadcast", packet.isBroadcast(), is(equalTo(false))); }
@Test public final void testIsBroadcastTrue() throws Exception { destAddress = (Inet4Address) Inet4Address.getByName(IPDevice.BROADCAST_IP); RemoteATCommandWifiPacket packet = new RemoteATCommandWifiPacket(frameID, destAddress, transmitOptions, command, parameter); assertThat("Packet should be broadcast", packet.isBroadcast(), is(equalTo(true))); }