HiveDestinationServiceImpl implements HiveDestinationService { @Override public void deleteHiveDestination(String name) throws UnknownRoadException, UnknownDestinationException { hiveDestinationAdminClient.deleteHiveDestination(name); } @Autowired  HiveDestinationServiceImpl(HiveDestinationAdminClient hiveDestinationAdminClient); @Override HiveDestinationModel getHiveDestination(String name); @Override void createHiveDestination(String name, HiveDestinationModel hiveDestinationModel); @Override void updateHiveDestination(String name, HiveDestinationModel hiveDestinationModel); @Override void deleteHiveDestination(String name);  }
@Test public void deleteHiveDestination() throws Exception { underTest.deleteHiveDestination(NAME); verify(hiveDestinationAdminClient).deleteHiveDestination(NAME); }
@Test(expected = UnknownRoadException.class) public void deleteHiveDestination_UnknownRoad() throws Exception { doThrow(UnknownRoadException.class).when(hiveDestinationAdminClient).deleteHiveDestination(NAME); underTest.deleteHiveDestination(NAME); }
@Test(expected = UnknownDestinationException.class) public void deleteHiveDestination_UnknownDestination() throws Exception { doThrow(UnknownDestinationException.class).when(hiveDestinationAdminClient).deleteHiveDestination(NAME); underTest.deleteHiveDestination(NAME); }