### Question:
TelemetryEvent { public @Qos int getQos() { return mQos; } 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 testGetQosAtMostOnce() { TelemetryEvent event = new TelemetryEvent(new byte[1], null, TelemetryEvent.QOS_AT_MOST_ONCE); assertThat(event.getQos()).isEqualTo(TelemetryEvent.QOS_AT_MOST_ONCE); }
@Test public void testGetQosAtLeastOnce() { TelemetryEvent event = new TelemetryEvent(new byte[1], null, TelemetryEvent.QOS_AT_LEAST_ONCE); assertThat(event.getQos()).isEqualTo(TelemetryEvent.QOS_AT_LEAST_ONCE); }