@Test
public void findById() {
ExternalResource resource = resourceDAO.find("ws-target-resource-1");
assertNotNull("findById did not work", resource);
ConnInstance connector = resource.getConnector();
assertNotNull("connector not found", connector);
assertEquals("invalid connector name",
"org.connid.bundles.soap.WebServiceConnector", connector.getConnectorName());
assertEquals("invalid bundle name", "org.connid.bundles.soap", connector.getBundleName());
assertEquals("invalid bundle version", connidSoapVersion, connector.getVersion());
assertFalse("no mapping specified", resource.getUmapping().getItems().isEmpty());
List<Long> mappingIds = new ArrayList<Long>();
for (AbstractMappingItem item : resource.getUmapping().getItems()) {