BadgeClassExtensionServiceImpl implements BadgeClassExtensionService { @Override public void delete(String badgeId) { cassandraOperation.deleteRecord(Util.KEY_SPACE_NAME, BADGE_CLASS_EXT_TABLE_NAME, badgeId); } BadgeClassExtensionServiceImpl();  BadgeClassExtensionServiceImpl(CassandraOperation cassandraOperation); @Override void save(BadgeClassExtension badgeClassExtension); @Override List<BadgeClassExtension> search(
      List<String> issuerList,
      List<String> badgeList,
      String rootOrgId,
      String type,
      String subtype,
      List<String> roles); @Override BadgeClassExtension get(String badgeId); @Override void delete(String badgeId); static final String BADGE_CLASS_EXT_TABLE_NAME; }
@Test public void testDeleteSuccess() { PowerMockito.when( mockDBService.deleteRecord( Mockito.anyString(), Mockito.anyString(), Mockito.anyString())) .thenReturn(new Response()); boolean thrown = false; try { badgeClassExtensionServiceImpl.delete(VALUE_BADGE_ID); } catch (Exception e) { thrown = true; } Assert.assertEquals(false, thrown); }