ClusterJdbcDao extends JdbcDaoSupport { public void setClusterAdministrationStatus(ClusterAdministrationStatus clusterConsolidationStatus, long clusterId) { Object[] args = {clusterConsolidationStatus.toString(), clusterId}; getJdbcTemplate().update(sqlSetClusterAdministrationStatus, args); }  ClusterAdministrationStatus getClusterAdministrationStatus(long clusterId); void setClusterAdministrationStatus(ClusterAdministrationStatus clusterConsolidationStatus, long clusterId); Date getClusterLastAdminstration(long clusterId); void setClusterLastAdministration(Date date, long clusterId);  }
@Test public void setClusterAdministrationStatusTest() { Object[] args = { ClusterAdministrationStatus.Done.toString(), 0l }; Mockito.doReturn(0).when(jdbcTemplate).update(sqlSetClusterAdministrationStatus, args); spy.setClusterAdministrationStatus(ClusterAdministrationStatus.Done, 0l); Mockito.verify(jdbcTemplate).update(sqlSetClusterAdministrationStatus, args); }