@Test
public void testGetAttribute() throws Exception {

    assertEquals("Expected value not found", "name",
            metadataService.getAttribute(StreamsHelper.STREAM_NAME, 0).getName());
    assertEquals("Expected value not found", "timestamp",
            metadataService.getAttribute(StreamsHelper.STREAM_NAME, 1).getName());
    assertEquals("Expected value not found", "value",
            metadataService.getAttribute(StreamsHelper.STREAM_NAME, 2).getName());
}