@Test
public void getAllServerNodes_nodeInNodeMap()
    throws Exception
{

    HMSLocalServerRestService hmsLocalServerRestService = new HMSLocalServerRestService();
    HttpServletRequest requestMock = mock( HttpServletRequest.class );
    HttpServletResponse responseMock = mock( HttpServletResponse.class );
    when( requestMock.getServletPath() ).thenReturn( "/test" );
    when( requestMock.getPathInfo() ).thenReturn( "/test" );
    when( requestMock.getQueryString() ).thenReturn( "test" );
    when( requestMock.getMethod() ).thenReturn( "GET" );
    Map<String, ServerNode> response =
        hmsLocalServerRestService.getAllServerNodes( null, HttpMethod.GET, requestMock, responseMock );
    assertNotNull( response );
    assertNotNull( response.get( "N1" ) );
}