@Test
public void testCreateSubscriptionWithoutReplay() throws NetconfMessageBuilderException, InterruptedException, ExecutionException,
        ParserException {

    NetconfClientSession clientSession = mock(NetconfClientSession.class);
    Device device = getDevice();
    NetConfResponse response = new NetConfResponse();
    response.setOk(true);
    when(m_notificationService.isReplaySupported(any(NetconfClientSession.class))).thenReturn(false);
    when(m_notificationService.createSubscriptionWithCallback(any(NetconfClientSession.class), any(String.class),
            any(NotificationListener.class), any(), eq(false))).thenReturn(response);
    m_deviceReconnectNotificationAction.deviceConnected(device, clientSession);
    verify(m_notificationService, never()).createSubscriptionWithCallback(any(NetconfClientSession.class), any(String.class),
            any(NotificationListener.class), any(), eq(true));
}