source: class UIManagerModuleConstantsTest {
  
    @Rule
    public PowerMockRule rule;
    private static final String CUSTOM_BUBBLING_EVENT_TYPES;
    private static final String CUSTOM_DIRECT_EVENT_TYPES;
    private static final Map TWIRL_BUBBLING_EVENT_MAP;
    private static final Map TWIRL_DIRECT_EVENT_MAP;
    private ReactApplicationContext mReactContext;
    private UIImplementationProvider mUIImplementationProvider;
  
    @Test
    public void testNativeProps() {
  
target:     ViewManager mockViewManager = mock(ViewManager.class);
      List<ViewManager> viewManagers = Arrays.asList(mockViewManager);
      when(mockViewManager.getName()).thenReturn("SomeView");
      when(mockViewManager.getNativeProps())
          .thenReturn(MapBuilder.of("fooProp", "number"));
      UIManagerModule uiManagerModule =
          new UIManagerModule(mReactContext, viewManagers, mUIImplementationProvider, false, 0);
      Map<String, Object> constants = uiManagerModule.getConstants();
      assertThat((String) valueAtPath(constants, "SomeView", "NativeProps", "fooProp"))
          .isEqualTo("number");
    }
  
  }