@Test
public void testSimple() {

    Converter conv = new Converter(fakeServiceName);
    Timber.LogEvent event = conv.convertFrom(rec);
    assertEquals(rec.getLevel().intValue(), event.getLevel());
    assertEquals(rec.getMillis(), event.getTimestamp());
    assertEquals(rec.getThreadID(), event.getTid());
    assertEquals(rec.getSourceClassName() + "#" + rec.getSourceMethodName(),
                 event.getSource());
    // The fields for which we have no value or constant values
    assertEquals(0, event.getPid());
    assertEquals(fakeServiceName, event.getServiceName());
    assertEquals("T", event.getType());
    // Make sure there is a single payload and that it contains
    // the raw message
    assertEquals(1, event.getPayloadCount());
    Timber.Payload payload = event.getPayload(0);
    assertEquals("msg", payload.getName());
    assertEquals(logMessage, payload.getPayload().toStringUtf8());
}