@Test
public void testAddReference() throws IllegalAccessException, InvocationTargetException {

    SenBotReferenceService referenceService = SenBotContext.getSenBotContext().getReferenceService();
    MockRefObject expected = new MockRefObject();
    referenceService.addReference(MockRefObject.class, "mock_ref", expected);
    MockRefObject found = (MockRefObject) referenceService.getReference(MockRefObject.class, "mock_ref");
    assertEquals(expected, found);
}