### Question:
TelemetryEvent { public byte[] getData() { return mData; } TelemetryEvent(@NonNull byte[] data, @Nullable String topicSubpath, @Qos int qos); byte[] getData(); String getTopicSubpath(); @Qos int getQos(); static final int QOS_AT_MOST_ONCE; static final int QOS_AT_LEAST_ONCE; }### Answer:
@Test public void testGetData() { byte[] data = new byte[] {1}; TelemetryEvent event = new TelemetryEvent(data, null, TelemetryEvent.QOS_AT_MOST_ONCE); byte[] outData = event.getData(); assertThat(outData.length).isEqualTo(data.length); assertThat(outData[0]).isEqualTo(data[0]); }