@Test
public void testLoadConfigConnections() {

    StringReader configReader = new StringReader(
            "processor:\n" +
                    "    processor_id: 2\n" +
                    "    connections:\n" +
                    "        - target_processor: 1\n" +
                    "          dest_port: 0\n" +
                    "          channel: channel0\n" +
                    "        - target_processor: 0\n" +
                    "          dest_port: 4\n" +
                    "          channel: channel1\n");
    AssemblerConfig config = Assembler.loadConfig(configReader);
    assertThat(config.getProcessor().getIopins(), is(equalTo(Collections.emptyList())));
    assertThat(config.getProcessor().getProcessor_id(), is(equalTo(2)));
    assertThat(config.getProcessor().getConnections().get(0).getTarget_processor(), is(equalTo(1)));
    assertThat(config.getProcessor().getConnections().get(0).getDest_port(), is(equalTo(0)));
    assertThat(config.getProcessor().getConnections().get(0).getChannel(), is(equalTo("channel0")));
    assertThat(config.getProcessor().getConnections().get(1).getTarget_processor(), is(equalTo(0)));
    assertThat(config.getProcessor().getConnections().get(1).getDest_port(), is(equalTo(4)));
    assertThat(config.getProcessor().getConnections().get(1).getChannel(), is(equalTo("channel1")));
}