@Test
public void testSetCustomDimensions() throws Exception {

    TrackMe trackMe = new TrackMe();
    CustomDimension.setDimension(trackMe, 0, "foo");
    CustomDimension.setDimension(trackMe, 1, "foo");
    CustomDimension.setDimension(trackMe, 2, "bar");
    CustomDimension.setDimension(trackMe, 3, "empty");
    CustomDimension.setDimension(trackMe, 3, null);
    CustomDimension.setDimension(trackMe, 4, "");
    assertEquals("foo", trackMe.get("dimension1"));
    assertEquals("bar", trackMe.get("dimension2"));
    assertNull(trackMe.get("dimension0"));
    assertNull(trackMe.get("dimension3"));
    assertNull(trackMe.get("dimension4"));
}