@Test
  public void testDelete() throws Exception {

    UserDetails uDet = repository.findOne(emconNo);

    repository.delete(uDet);
    UserDetails newUDet = repository.findOne(emconNo);
    Assert.assertNull(newUDet);
  }
  @Test
  public void testUpdate() throws Exception {

    UserDetails uDet = repository.findOne(emconNo);

    UserDetails newUDet = new UserDetails.Builder("B5051").build();

    repository.save(newUDet);

    Assert.assertEquals("B5051", newUDet.getEmconNo());
  }
  @Test
  public void testCreate() throws Exception {

    UserDetails uDet = new UserDetails.Builder("A0541").build();

    repository.save(uDet);

    emconNo = uDet.getEmconNo();

    Assert.assertNotNull(uDet.getEmconNo());
  }
 @Test
 public void testRead() throws Exception {
   UserDetails uDet = repository.findOne(emconNo);
   Assert.assertEquals("A0541", uDet.getEmconNo());
 }