@Test
public void getExistingDriverWithAuthenticationTest() throws PlcException {

    PlcUsernamePasswordAuthentication authentication =
        new PlcUsernamePasswordAuthentication("user", "pass");
    MockPlcConnection mockConnection = (MockPlcConnection) new PlcDriverManager().getConnection("api-mock://some-cool-url", authentication);
    assertThat(mockConnection.getAuthentication(), notNullValue());
    assertThat(mockConnection.getAuthentication(), instanceOf(PlcUsernamePasswordAuthentication.class));
    assertThat(mockConnection.isConnected(), is(true));
}