@Test
public void testGetAttributePosition() throws Exception {

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