@Test void deserializeShouldWork() throws Exception { assertThat(mailboxIdDeserializer.deserialize(UUID_STRING)).isEqualTo(CASSANDRA_ID); }
@Override public CassandraId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return CassandraId.of(UUID.fromString(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error de-serialising " + serializedMailboxId, e); } }
CassandraMailboxIdDeserializer implements MailboxIdDeserializer { @Override public CassandraId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return CassandraId.of(UUID.fromString(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error de-serialising " + serializedMailboxId, e); } } }
CassandraMailboxIdDeserializer implements MailboxIdDeserializer { @Override public CassandraId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return CassandraId.of(UUID.fromString(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error de-serialising " + serializedMailboxId, e); } }  }
CassandraMailboxIdDeserializer implements MailboxIdDeserializer { @Override public CassandraId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return CassandraId.of(UUID.fromString(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error de-serialising " + serializedMailboxId, e); } }  @Override CassandraId deserialize(String serializedMailboxId); }
CassandraMailboxIdDeserializer implements MailboxIdDeserializer { @Override public CassandraId deserialize(String serializedMailboxId) throws MailboxIdDeserialisationException { try { return CassandraId.of(UUID.fromString(serializedMailboxId)); } catch (Exception e) { throw new MailboxIdDeserialisationException("Error de-serialising " + serializedMailboxId, e); } }  @Override CassandraId deserialize(String serializedMailboxId);  }