@SuppressWarnings({"rawtypes", "unchecked"})

@Test
public void testBindProperties() throws IOException, NamingException {
    LOG.info("testBindProperties");
    final Binder binder = Mockito.mock(Binder.class);
    Mockito.when(binder.skipSources(Names.class)).thenReturn(binder);
    Mockito.when(binder.bind(Mockito.any(Key.class))).thenReturn(Mockito.mock(LinkedBindingBuilder.class));
    final String propertyFile = "classpath:" + PROPERTY_FILE_ENVVAR;
    GuiceUtils.bindProperties(binder, propertyFile);
    Mockito.verify(binder, Mockito.times(5)).addError(Mockito.any(String.class));
}