@Test
public void testChannelThrowsExceptionDuringConfiguration() throws Exception {

  String agentName = "agent1";
  String sourceType = "seq";
  String channelType = UnconfigurableChannel.class.getName();
  String sinkType = "null";
  Map<String, String> properties = getProperties(agentName, sourceType,
                                                 channelType, sinkType);
  MemoryConfigurationProvider provider =
      new MemoryConfigurationProvider(agentName, properties);
  MaterializedConfiguration config = provider.getConfiguration();
  Assert.assertTrue(config.getSourceRunners().size() == 0);
  Assert.assertTrue(config.getChannels().size() == 0);
  Assert.assertTrue(config.getSinkRunners().size() == 0);
}