DevOpsRoute extends AbstractRoute { private Route piggyback(final RequestContext ctx, final DittoHeaders dittoHeaders) { return buildRouteWithOptionalServiceNameAndInstance(ctx, dittoHeaders, this::routePiggyback); } DevOpsRoute(final ActorRef proxyActor,
            final ActorSystem actorSystem,
            final HttpConfig httpConfig,
            final CommandConfig commandConfig,
            final DevOpsConfig devOpsConfig,
            final HeaderTranslator headerTranslator); Route buildDevOpsRoute(final RequestContext ctx, final Map<String, String> queryParameters);  }
@Test public void testPiggyback() { final RetrieveThing retrieveThing = RetrieveThing.of("thing:id", DittoHeaders.empty()); final ExecutePiggybackCommand body = ExecutePiggybackCommand.of("things", "1", retrieveThing.toJson(), DittoHeaders.empty()); final RequestEntity requestEntity = HttpEntities.create(ContentTypes.APPLICATION_JSON, body.toJsonString()); final TestRouteResult result = underTest.run(HttpRequest.POST("/devops/piggyback") .withEntity(requestEntity)); result.assertStatusCode(StatusCodes.OK); }