@Test void deserializeShouldWork() throws Exception { assertThat(mailboxIdDeserializer.deserialize(SERIALIZED_ID)).isEqualTo(JPA_ID); }
@Override public JPAId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return JPAId.of(Long.parseLong(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error deserializing " + serializedMailboxId, e); } }
JPAMailboxIdDeserializer implements MailboxIdDeserializer { @Override public JPAId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return JPAId.of(Long.parseLong(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error deserializing " + serializedMailboxId, e); } } }
JPAMailboxIdDeserializer implements MailboxIdDeserializer { @Override public JPAId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return JPAId.of(Long.parseLong(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error deserializing " + serializedMailboxId, e); } }  }
JPAMailboxIdDeserializer implements MailboxIdDeserializer { @Override public JPAId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return JPAId.of(Long.parseLong(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error deserializing " + serializedMailboxId, e); } }  @Override JPAId deserialize(String serializedMailboxId); }
JPAMailboxIdDeserializer implements MailboxIdDeserializer { @Override public JPAId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return JPAId.of(Long.parseLong(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error deserializing " + serializedMailboxId, e); } }  @Override JPAId deserialize(String serializedMailboxId);  }