@Test
public void shouldParseListOfDatasources() {

    final List<Datasource> testee = datasources("foo:42/bar,foobar");
    assertThat(testee.get(0).node).isEqualTo("foo");
    assertThat(testee.get(0).port).isEqualTo(42);
    assertThat(testee.get(0).resource).isEqualTo("bar");
    assertThat(testee.get(1).node).isEqualTo("foobar");
    assertThat(testee.get(1).port).isEqualTo(-1);
    assertThat(testee.get(1).resource).isEqualTo("");
}