### Question:
AssuranceServiceImpl implements AssuranceService { @Override public Response getAllAssuranceTypes(HttpHeaders headers) { List<AssuranceTypeBean> atlist = new ArrayList<>(); for (AssuranceType at : AssuranceType.values()) { AssuranceTypeBean atb = new AssuranceTypeBean(); atb.setIndex(at.getIndex()); atb.setName(at.getName()); atb.setPrice(at.getPrice()); atlist.add(atb); } if (!atlist.isEmpty()) { return new Response<>(1, "Find All Assurance", atlist); } else { return new Response<>(0, "Assurance is Empty", null); } }  @Override Response findAssuranceById(UUID id, HttpHeaders headers); @Override Response findAssuranceByOrderId(UUID orderId, HttpHeaders headers); @Override Response create(int typeIndex, String orderId, HttpHeaders headers); @Override Response deleteById(UUID assuranceId, HttpHeaders headers); @Override Response deleteByOrderId(UUID orderId, HttpHeaders headers); @Override Response modify(String assuranceId, String orderId, int typeIndex, HttpHeaders headers); @Override Response getAllAssurances(HttpHeaders headers); @Override Response getAllAssuranceTypes(HttpHeaders headers);  }### Answer:
@Test public void testGetAllAssuranceTypes() { List<AssuranceTypeBean> assuranceTypeBeanList = new ArrayList<>(); AssuranceTypeBean assuranceTypeBean = new AssuranceTypeBean(1, "Traffic Accident Assurance", 3.0); assuranceTypeBeanList.add(assuranceTypeBean); Response result = assuranceServiceImpl.getAllAssuranceTypes(headers); Assert.assertEquals(new Response<>(1, "Find All Assurance", assuranceTypeBeanList), result); }