@Test
void readCommandSet() throws IOException {

    DicomObject cmd;
    try (InputStream in = new ByteArrayInputStream(C_ECHO_RQ)) {
        cmd = new DicomInputStream(in).readCommandSet();
    }
    assertNotNull(cmd);
    assertEquals(48, cmd.getInt(Tag.CommandField).orElseGet(Assertions::fail));
    Assertions.assertEquals(UID.VerificationSOPClass, cmd.getString(Tag.AffectedSOPClassUID).orElseGet(Assertions::fail));
}