@Test
public void testParseShouldReturnHitcountWhenUsageIsHitcount() {

    //GIVEN
    given(dialogDescriptor.getAttribute("name")).willReturn("name");
    given(dialogDescriptor.getAttribute("usage")).willReturn("hitcount");
    given(dialogDescriptor.getAttribute("validityValue")).willReturn("2");
    //WHEN
    DialogDescriptorAttributes actual = underTest.getAttributes(dialogDescriptor);
    //THEN
    assertEquals(actual.getHitcount(), 2);
}