@Test
public void applyWithHandledCommandReturnsTheReplacedCommandInstanceWhenLegacyPlaceholderIsSpecified() {

    final ModifySubject commandWithoutPlaceholders = ModifySubject.of(PolicyId.of("org.eclipse.ditto:my-policy"),
            Label.of("my-label"), Subject.newInstance("${request.subjectId}", SubjectType.GENERATED),
            DITTO_HEADERS);
    final WithDittoHeaders response = applyBlocking(commandWithoutPlaceholders);
    final ModifySubject expectedCommandWithPlaceholders = ModifySubject.of(commandWithoutPlaceholders.getEntityId(),
            commandWithoutPlaceholders.getLabel(), Subject.newInstance(SUBJECT_ID, SubjectType.GENERATED),
            DITTO_HEADERS);
    assertThat(response).isEqualTo(expectedCommandWithPlaceholders);
}