@Test
public void getConfigurationObjectGetResultUnsuccessful() throws Exception {

    // SETUP
    when(this.getResult.getResultCode()).thenReturn(AccessResultCode.READ_WRITE_DENIED);
    when(this.dlmsConnection.get(any(AttributeAddress.class))).thenReturn(this.getResult);
    // CALL
    assertThatExceptionOfType(ProtocolAdapterException.class).isThrownBy(() -> {
        this.instance.getConfigurationObject(this.conn);
    });
}