@Test
public void getProcessorComponentStats() throws Exception {

    final TopologyLayout topology = getTopologyLayoutForTest();
    final long from = 1L;
    final long to = 3L;
    final TopologyTimeSeriesMetrics.TimeSeriesComponentMetric expectedMetric =
            setupExpectionToBoltComponent(processor, from, to);
    TopologyTimeSeriesMetrics.TimeSeriesComponentMetric actual =
            stormTopologyTimeSeriesMetrics.getComponentStats(topology, processor, from, to, null);
    assertEquals(expectedMetric, actual);
}