Davide Giuseppe Farella
12/04/2019, 8:25 AM@Test
fun `serialization works correctly with explicit DraftSource subtype`() {
val json = Json(context = draftSourceModule)
val source = DraftSource.FromDraft(actionId = 0, messageId = "id")
val serialized = json.stringify(source)
assertEquals(source, json.parse(serialized))
}