### Question:
IPv6RemoteATCommandRequestPacket extends XBeeAPIPacket { public String getParameterAsString() { if (parameter == null) return null; return new String(parameter); } IPv6RemoteATCommandRequestPacket(int frameID, Inet6Address destAddress, 
			int transmitOptions, String command, String parameter);  IPv6RemoteATCommandRequestPacket(int frameID, Inet6Address destAddress, 
			int transmitOptions, String command, byte[] parameter); static IPv6RemoteATCommandRequestPacket createPacket(byte[] payload); @Override boolean needsAPIFrameID(); @Override boolean isBroadcast(); Inet6Address getDestAddress(); 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 testGetParameterAsString() { IPv6RemoteATCommandRequestPacket packet = new IPv6RemoteATCommandRequestPacket(frameID, ipv6address, transmitOptions, command, parameterStr); String value = packet.getParameterAsString(); assertThat("Returned parameter must be '" + parameterStr + "'", value, is(equalTo(parameterStr))); }
@Test public final void testGetParameterAsStringNullValue() { IPv6RemoteATCommandRequestPacket packet = new IPv6RemoteATCommandRequestPacket(frameID, ipv6address, transmitOptions, command, (String)null); String value = packet.getParameterAsString(); assertThat("Returned parameter must be 'null'", value, is(equalTo(null))); }