@Test
public void testValidInstantiation() {
Connection c = TestUtils.createTestFeedConnection(OutboundDataType.PROCESSED);
ObjectId testObjectId = new ObjectId();
c.setId(testObjectId);
OutboundConfiguration outboundConfiguration = Lists.newArrayList(c.getOutboundConfigurations()).get(0);
OutboundConfigurationWithPayloadDTO dto = new OutboundConfigurationWithPayloadDTO(
outboundConfiguration,"{\"foo\":\"bar\"}", OutboundDataType.PROCESSED);
Assert.assertEquals(OutboundDataType.PROCESSED,dto.getDataType());
Assert.assertEquals(new OutboundConfigurationServiceDTO(outboundConfiguration),dto.getOutboundConfiguration());