@Test
public void testGetProperty() {

    Map<String, Object> p = new HashMap<>();
    p.put(RemoteConstants.ENDPOINT_ID, "http://google.de");
    p.put("notAString", new Object());
    p.put(org.osgi.framework.Constants.OBJECTCLASS, new String[]{"my.class"});
    p.put(RemoteConstants.SERVICE_IMPORTED_CONFIGS, new String[]{"my.config"});
    EndpointDescription endpoint = new EndpointDescription(p);
    assertNull(PropertyHelper.getProperty(endpoint.getProperties(), "unknownProp"));
    assertEquals(p.get(RemoteConstants.ENDPOINT_ID),
                 PropertyHelper.getProperty(endpoint.getProperties(), RemoteConstants.ENDPOINT_ID));
    assertNull(PropertyHelper.getProperty(endpoint.getProperties(), "notAString"));
}