ComMobileAreaServiceImpl implements ComMobileAreaService { @Override public ComMobileArea findMobileArea(ComMobileArea comMobileArea) { return comMobileAreaDAO.findMobileArea(comMobileArea); }  @Override ComMobileArea findMobileArea(ComMobileArea comMobileArea); void setComMobileAreaDAO(ComMobileAreaDAO comMobileAreaDAO);  }
@Test public void testFindMobileArea() { ComMobileArea cm=new ComMobileArea(); cm.setMobileNumber("1381780"); cm=comMobileAreaService.findMobileArea(cm); Assert.assertNotNull(cm); Assert.assertEquals(cm.getProvinceName(), "上海"); }