### Question:
Adapter { @VisibleForTesting static Model.Log toJaegerLog(Event event) { Model.Log.Builder builder = Model.Log.newBuilder(); builder.setTimestamp(Timestamps.fromNanos(event.getEpochNanos())); builder.addFields( Model.KeyValue.newBuilder().setKey(KEY_LOG_MESSAGE).setVStr(event.getName()).build()); builder.addAllFields(toKeyValues(event.getAttributes())); return builder.build(); } private  Adapter();   }### Answer:
@Test void testJaegerLog() { Event event = getTimedEvent(); Model.Log log = Adapter.toJaegerLog(event); assertEquals(2, log.getFieldsCount()); Model.KeyValue keyValue = getValue(log.getFieldsList(), Adapter.KEY_LOG_MESSAGE); assertNotNull(keyValue); assertEquals("the log message", keyValue.getVStr()); keyValue = getValue(log.getFieldsList(), "foo"); assertNotNull(keyValue); assertEquals("bar", keyValue.getVStr()); }