@VisibleForTesting
    Optional<Method> getGetContainersFromPreviousAttemptsMethod() {
        return getContainersFromPreviousAttemptsMethod;
    }
@Test
    void testGetContainersFromPreviousAttemptsMethodReflectiveHadoop22() {

        final RegisterApplicationMasterResponseReflector
                registerApplicationMasterResponseReflector =
                        new RegisterApplicationMasterResponseReflector(LOG);

        assertThat(
                        registerApplicationMasterResponseReflector
                                .getGetContainersFromPreviousAttemptsMethod())
                .isPresent();
    }