PduMessageHeader extends TLVStructure { public String getLoginId() { return loginId; } PduMessageHeader(String loginId);  PduMessageHeader(String loginId, Long instanceId, Long messageId);  PduMessageHeader(String loginId, KSIRequestContext context);  PduMessageHeader(TLVElement rootElement); Long getInstanceId(); Long getMessageId(); String getLoginId(); @Override int getElementType(); static final int ELEMENT_TYPE_MESSAGE_HEADER; }
@Test public void testCreateMessageHeader_Ok() throws Exception { PduMessageHeader messageHeader = new PduMessageHeader(TEST_LOGIN_ID); PduMessageHeader header = load(messageHeader.getRootElement().getEncoded()); Assert.assertEquals(header.getLoginId(), TEST_LOGIN_ID); Assert.assertEquals(header.getLoginId(), messageHeader.getLoginId()); }