@Test(expected = NotFoundException.class)
public void getConnectorForMissing() {

    Mockito.when(provider.find(Mockito.any(Connector.ID.class))).thenReturn(Optional.empty());
    controller.getConnector("C1", true);
}