  @Test
  public void testCreateObjectFromString() throws Exception {

    HashMap<String, Class> mockMap = mock(HashMap.class);
    when(mockMap.get("articles")).thenReturn(Article.class);
    Deserializer.setRegisteredClasses(mockMap);
    Deserializer deserializer = new Deserializer();

    Resource resource = deserializer.createObjectFromString("articles");

    assertNotNull(resource);
    assertEquals(resource.getClass(), Article.class);
  }