@Test
public void testBin() {

    String bin = "1234567";
    Mockito.when(this.geosupportServiceMock.callFunctionBN(bin)).thenReturn(expectedResult);
    Map<String, Object> actualResult = this.restController.bin(bin);
    assertSame(expectedResult, actualResult.get(RestController.BIN_OBJ));
}