@Test
public void testLoadConfigIOPins() {

    StringReader configReader = new StringReader(
            "processor:\n" +
                    "    processor_id: 0\n" +
                    "    iopins:\n" +
                    "        - addr: 70\n" +
                    "          channel: pin0\n" +
                    "          config: 1\n");
    AssemblerConfig config = Assembler.loadConfig(configReader);
    assertThat(config.getProcessor().getConnections(), is(equalTo(Collections.emptyList())));
    assertThat(config.getProcessor().getProcessor_id(), is(equalTo(0)));
    assertThat(config.getProcessor().getIopins().get(0).getAddr(), is(equalTo(70)));
    assertThat(config.getProcessor().getIopins().get(0).getChannel(), is(equalTo("pin0")));
    assertThat(config.getProcessor().getIopins().get(0).getConfig(), is(equalTo(1)));
}