@Test public void testCreateHandshakingRequest() throws Exception { SFRMMessage message = SFRMMessageFactory.getInstance(). createHandshakingRequest(messageId, partnershipId, totalSegment, totalSize, filename); message.setContent(messageContent, contentType); Assert.assertEquals("Message-Id should be " + messageId, messageId, (String)message.getHeader(SFRMHeader.MESSAGE_ID)); Assert.assertEquals("Partnership-Id should be " + partnershipId, partnershipId, (String)message.getHeader(SFRMHeader.SFRM_PARTNERSHIP)); Assert.assertEquals("Segment-Type should be META", SFRMConstant.MSGT_META, message.getHeader(SFRMHeader.SFRM_SEGMENT_TYPE)); Assert.assertEquals("Segment No should be 0", 0, Integer.parseInt(message.getHeader(SFRMHeader.SFRM_SEGMENT_NO))); Assert.assertEquals("Total number of segment should be " + totalSegment, totalSegment, Integer.parseInt(message.getHeader(SFRMHeader.SFRM_META_TOTAL_SEGMENT))); Assert.assertEquals("Total size of segment should be " + totalSize, totalSize, Long.parseLong(message.getHeader(SFRMHeader.SFRM_TOTAL_SIZE))); Assert.assertEquals("Filename should be " + filename, filename, message.getHeader(SFRMHeader.SFRM_FILENAME)); }
public static OutgoingMessageHandler getInstance(){ return omh; }
OutgoingMessageHandler extends SFRMComponent { public static OutgoingMessageHandler getInstance(){ return omh; } }
OutgoingMessageHandler extends SFRMComponent { public static OutgoingMessageHandler getInstance(){ return omh; }  }
OutgoingMessageHandler extends SFRMComponent { public static OutgoingMessageHandler getInstance(){ return omh; }  static OutgoingMessageHandler getInstance(); FastHttpConnector sendMessage(
			SFRMMessage message, String endpoint, boolean isHostVerified,
			String signAlg, String encryptAlg, X509Certificate encryptCert); SFRMMessage sendMessageWithMessageResponse(
			SFRMMessage message, String endpoint, boolean isHostVerified,
			String signAlg, String encryptAlg, X509Certificate encryptCert); }
OutgoingMessageHandler extends SFRMComponent { public static OutgoingMessageHandler getInstance(){ return omh; }  static OutgoingMessageHandler getInstance(); FastHttpConnector sendMessage(
			SFRMMessage message, String endpoint, boolean isHostVerified,
			String signAlg, String encryptAlg, X509Certificate encryptCert); SFRMMessage sendMessageWithMessageResponse(
			SFRMMessage message, String endpoint, boolean isHostVerified,
			String signAlg, String encryptAlg, X509Certificate encryptCert);  }