@Test
public void testExportOneConfigSupported() throws Exception {

    final Map<String, Object> sProps = new HashMap<>();
    sProps.put("objectClass", new String[] {"java.lang.Runnable"});
    sProps.put("service.id", 51L);
    sProps.put("myProp", "myVal");
    sProps.put("service.exported.interfaces", "*");
    sProps.put(RemoteConstants.SERVICE_EXPORTED_CONFIGS, new String[]{MYCONFIG, "aconfig"});
    ServiceReference sref = mockServiceReference(sProps);
    provider.endpoint = createEndpoint(sProps);
    c.replay();
    List<ExportRegistration> ereg = rsaCore.exportService(sref, null);
    assertEquals(1, ereg.size());
    ExportRegistration first = ereg.iterator().next();
    EndpointDescription exportedEndpoint = first.getExportReference().getExportedEndpoint();
    assertThat(exportedEndpoint.getConfigurationTypes(), contains(MYCONFIG));
}