@Test
public void get_primitiveType()
{

  final IllegalStateException exception =
    expectThrows( IllegalStateException.class, () -> Contexts.get( int.class, "port" ) );
  assertEquals( exception.getMessage(),
                "Attempting to access primitive type int from the React context. Access using the boxed type instead" );
}