@Test
public void shouldBuildDatasourceFromStringWithoutPortAndResource() {

    final Datasource testee = datasource("foo");
    assertThat(testee.node).isEqualTo("foo");
    assertThat(testee.port).isEqualTo(-1);
    assertThat(testee.resource).isEqualTo("");
}