@Test
public void testCreateEndpointProps() {

    c.replay();
    Map<String, Object> sd = new HashMap<>();
    sd.put(org.osgi.framework.Constants.SERVICE_ID, 42);
    Map<String, Object> props = rsaCore.createEndpointProps(sd, new Class[]{String.class});
    Assert.assertFalse(props.containsKey(org.osgi.framework.Constants.SERVICE_ID));
    assertEquals(42, props.get(RemoteConstants.ENDPOINT_SERVICE_ID));
    assertEquals("some_uuid1", props.get(RemoteConstants.ENDPOINT_FRAMEWORK_UUID));
    assertEquals(Arrays.asList("java.lang.String"),
        Arrays.asList((Object[]) props.get(org.osgi.framework.Constants.OBJECTCLASS)));
    assertEquals("1.0.0", props.get("endpoint.package.version.java.lang"));
    c.verify();
}