EBasic updatedEntity = new EBasic();
updatedEntity.setId(bean1.getId());
updatedEntity.setName("hello-changed");
server.update(updatedEntity);
// actually the bean is not in the persistence context so ... the assert is fine
EBasic loadedEntity = server.find(EBasic.class,bean1.getId());
assertThat(loadedEntity.getName(), is("hello-changed"));