### Question:
ProctorPromoter { @Deprecated public void promoteTrunkToQa(final String testName, String trunkRevision, String qaRevision, String username, String password, String author, Map<String, String> metadata) throws StoreException, TestPromotionException { promote(testName, Environment.WORKING, trunkRevision, Environment.QA, qaRevision, username, password, author, metadata); } ProctorPromoter(final ProctorStore trunk,
                           final ProctorStore qa,
                           final ProctorStore production,
                           final ExecutorService executor); @Deprecated void promoteTrunkToQa(final String testName, String trunkRevision, String qaRevision,
                                 String username, String password, String author, Map<String, String> metadata); @Deprecated void promoteQaToProduction(final String testName, String qaRevision, String prodRevision,
                                      String username, String password, String author, Map<String, String> metadata); @Deprecated void promoteTrunkToProduction(final String testName, String trunkRevision, String prodRevision,
                                         String username, String password, String author, Map<String, String> metadata); @SuppressWarnings({"MethodWithTooManyParameters"}) @VisibleForTesting void promote(final String testName, final Environment srcBranch, final String srcRevision, final Environment destBranch, final String destRevision,
                 final String username, final String password, final String author, final Map<String, String> metadata); @CheckForNull EnvironmentVersion getEnvironmentVersion(final String testName);  }### Answer:
@Test public void promoteTrunkToQA() throws StoreException, ProctorPromoter.TestPromotionException { Mockito.doNothing().when(proctorPromoter).promote( Mockito.eq(TEST_NAME), Mockito.any(Environment.class), Mockito.anyString(), Mockito.any(Environment.class), Mockito.anyString(), Mockito.eq(USERNAME), Mockito.eq(PASSWORD), Mockito.eq(AUTHOR), Mockito.eq(METADATA) ); proctorPromoter.promoteTrunkToQa(TEST_NAME, TRUNK_REVISION, QA_REVISION, USERNAME, PASSWORD, AUTHOR, METADATA); Mockito.verify(proctorPromoter, Mockito.times(1)).promote( TEST_NAME, Environment.WORKING, TRUNK_REVISION, Environment.QA, QA_REVISION, USERNAME, PASSWORD, AUTHOR, METADATA ); }