Spotify100ProtoSerializer implements Serializer { private Spotify100.Metric serializeMetric(final Metric metric) { return Spotify100.Metric.newBuilder() .setKey(metric.getKey()) .setTime(metric.getTime().getTime()) .setValue(metric.getValue()) .putAllTags(metric.getTags()) .putAllResource(metric.getResource()) .build(); }  @Override byte[] serialize(final Metric metric); @Override byte[] serialize(Collection<Metric> metrics, WriteCache writeCache); @Override byte[] serializeMetrics(final Collection<com.spotify.ffwd.model.v2.Metric> metrics,
                                 WriteCache writeCache);  }
@Test(expected = UnsupportedOperationException.class) public void testSerializeMetric() throws Exception { metric1 = create("",value,date, riemannTags,tags,resource,proc); serializer.serialize(metric1); }